-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlab4.v.bak
64 lines (57 loc) · 1.2 KB
/
lab4.v.bak
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module lab4(CLK, RESET, IOA, IOB, IOC, EN_L, PC, NextPC, Iin, DataA, DataB, DataC, DataD, Din, MW, IOD, IOE, IOF, IOG);
input CLK;
input RESET;
input [7:0] IOA;
input [7:0] IOB;
input [7:0] IOC;
input EN_L;
output [7:0] PC;
output [7:0] NextPC;
output [15:0] Iin;
output [7:0] DataA;
output [7:0] DataB;
output [7:0] DataC;
output [7:0] DataD;
output [7:0] Din;
output MW;
output [7:0] IOD;
output [7:0] IOE;
output [7:0] IOF;
output [7:0] IOG;
cpu proc(
.CLK(CLK),
.RESET(RESET),
.PC(PC),
.NextPC(NextPC),
.Iin(Iin),
.DataA(DataA),
.DataB(DataB),
.DataC(DataC),
.DataD(DataD),
.Din(Din),
.MW(MW),
.EN_L(EN_L)
);
// BELOW IS THE ONLY LINE YOU SHOULD HAVE TO MODIFY IN THIS FILE
lab4iramHRM program2run(
.CLK(CLK),
.RESET(RESET),
.ADDR(PC),
.Q(Iin)
);
lab4dram memory(
.CLK(CLK),
.RESET(RESET),
.ADDR(DataD),
.DATA(DataB),
.MW(MW),
.Q(Din),
.IOA(IOA),
.IOB(IOB),
.IOC(IOC),
.IOD(IOD),
.IOE(IOE),
.IOF(IOF),
.IOG(IOG)
);
endmodule