-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathverilator_top.v
58 lines (54 loc) · 859 Bytes
/
verilator_top.v
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
module verilator_top (
input clk,
input clk_video,
input reset,
input [7:0] hack_scancode,
output r,
output g,
output b,
output hsync,
output vsync,
output display_on,
output [9:0] hpos,
output [9:0] vpos,
output [14:0] pc,
output [15:0] instruction
);
wire [15:0] memOut, outM;
wire [14:0] addressM;
wire writeM;
CPU cpu (
clk,
memOut,
instruction,
reset,
outM,
writeM,
addressM,
pc
);
ROM32K rom0 (
clk,
pc,
instruction
);
Memory mem (
clk,
clk_video,
reset,
outM,
writeM,
addressM,
memOut,
hack_scancode,
r,
g,
b,
hsync,
vsync,
display_on,
hpos,
vpos
);
//Keyboard keyboard(clk, ps2_key, hack_scancode);
endmodule