forked from xormik/ozonecpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchakRom.v
executable file
·38 lines (31 loc) · 926 Bytes
/
chakRom.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
module chakRom (addr, instr);
input [4:0] addr;
output [31:0] instr;
reg [31:0] instr;
// addresses converted from 32 bit byte-addressable
// to 23-bit word-addressable
always @ (addr)
begin
case(addr)
5'h00: instr <= 32'h24010bad;
5'h00: instr <= 32'h3c020152;
5'h00: instr <= 32'h00000000;
5'h00: instr <= 32'h00000000;
5'h00: instr <= 32'h14220002;
5'h00: instr <= 32'h34220000;
5'h00: instr <= 32'h241e001e;
5'h00: instr <= 32'h240a000a;
5'h00: instr <= 32'h240b000b;
5'h00: instr <= 32'h240c000c;
5'h00: instr <= 32'h240d000d;
5'h00: instr <= 32'h156c0002;
5'h00: instr <= 32'h240e000e;
5'h00: instr <= 32'h241f001f;
5'h00: instr <= 32'h240f000f;
default: begin
instr <= 32'bx;
//$display("Invalid ROM address: %h", addr);
end
endcase
end
endmodule