-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_rom.v
57 lines (28 loc) · 819 Bytes
/
test_rom.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
module test_rom(
input [3:0] address,
output reg [7:0] dout
);
always @(address)
case (address)
/*
ラーメンタイマー
*/
4'b0000: dout <= 8'b10110111;
4'b0001: dout <= 8'b00000001;
4'b0010: dout <= 8'b11100001;
4'b0011: dout <= 8'b00000001;
4'b0100: dout <= 8'b11100011;
4'b0101: dout <= 8'b10110110;
4'b0110: dout <= 8'b00000001;
4'b0111: dout <= 8'b11100110;
4'b1000: dout <= 8'b00000001;
4'b1001: dout <= 8'b11101000;
4'b1010: dout <= 8'b10110000;
4'b1011: dout <= 8'b10110100;
4'b1100: dout <= 8'b00000001;
4'b1101: dout <= 8'b11101010;
4'b1110: dout <= 8'b10111000;
4'b1111: dout <= 8'b11111111;
default: dout <= 8'bxxxxxxxx;
endcase
endmodule