-
Notifications
You must be signed in to change notification settings - Fork 1
/
openmips_min_sopc.v
57 lines (47 loc) · 1.08 KB
/
openmips_min_sopc.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
`include "defines.v"
module openmips_min_sopc(input wire clk,
input wire rst
//input wire next,
//output [7:0] ledag,
//output [2:0] del
);
wire [`InstAddrBus] inst_addr;
wire [`InstBus] inst;
wire rom_ce;
wire mem_we_i;
wire [`RegBus] mem_addr_i;
wire [`RegBus] mem_data_i;
wire [`RegBus] mem_data_o;
wire [3:0] mem_sel_i;
wire mem_ce_i;
openmips openmips0(
.clk(clk),
.rst(rst),
.rom_addr_o(inst_addr),
.rom_data_i(inst),
.rom_ce_o(rom_ce),
.ram_we_o(mem_we_i),
.ram_addr_o(mem_addr_i),
.ram_sel_o(mem_sel_i),
.ram_data_o(mem_data_i),
.ram_data_i(mem_data_o),
.ram_ce_o(mem_ce_i)
//.del(del),
//.ledag(ledag),
//.next(next)
);
inst_rom inst_rom0(
.ce(rom_ce),
.addr(inst_addr),
.inst(inst)
);
data_ram data_ram0(
.clk(clk),
.we(mem_we_i),
.addr(mem_addr_i),
.sel(mem_sel_i),
.data_i(mem_data_i),
.data_o(mem_data_o),
.ce(mem_ce_i)
);
endmodule