-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple8BitProcessor.v
More file actions
41 lines (35 loc) · 902 Bytes
/
simple8BitProcessor.v
File metadata and controls
41 lines (35 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 01/27/2019 12:21:40 PM
// Design Name:
// Module Name: simple8BitProc
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module simple8BitProcessor(
input [7:0] dataIn,
output [7:0] dataOut,
input [8:0] func,
input clock
);
wire [2:0] opCode = func[8:6];
wire [2:0] Rx = func[5:3];
wire [2:0] Ry = func[2:0];
wire [2:0]addsub;
wire [1:0] destSrc;
wire regWrite;
controlUnit CU(opCode, regWrite, addsub, destSrc);
dataPath DP(dataIn, Rx, Ry, dataOut, addsub, destSrc, regWrite, clock);
endmodule