Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
380 | ddp | 1 | module circl_s( |
2 | input wire [4:0] in_addr, |
||
3 | output reg [4:0] out_word |
||
4 | ); |
||
5 | |||
6 | always @* |
||
7 | case( in_addr ) |
||
8 | 5'h00: out_word = 5'h00; |
||
9 | 5'h01: out_word = 5'h05; |
||
10 | 5'h02: out_word = 5'h09; |
||
11 | 5'h03: out_word = 5'h0B; |
||
12 | 5'h04: out_word = 5'h0D; |
||
13 | 5'h05: out_word = 5'h0F; |
||
14 | 5'h06: out_word = 5'h10; |
||
15 | 5'h07: out_word = 5'h12; |
||
16 | 5'h08: out_word = 5'h13; |
||
17 | 5'h09: out_word = 5'h14; |
||
18 | 5'h0A: out_word = 5'h15; |
||
19 | 5'h0B: out_word = 5'h16; |
||
20 | 5'h0C: out_word = 5'h17; |
||
21 | 5'h0D: out_word = 5'h17; |
||
22 | 5'h0E: out_word = 5'h18; |
||
23 | 5'h0F: out_word = 5'h19; |
||
24 | 5'h10: out_word = 5'h19; |
||
25 | 5'h11: out_word = 5'h1A; |
||
26 | 5'h12: out_word = 5'h1A; |
||
27 | 5'h13: out_word = 5'h1B; |
||
28 | 5'h14: out_word = 5'h1B; |
||
29 | 5'h15: out_word = 5'h1C; |
||
30 | 5'h16: out_word = 5'h1C; |
||
31 | 5'h17: out_word = 5'h1C; |
||
32 | 5'h18: out_word = 5'h1C; |
||
33 | 5'h19: out_word = 5'h1D; |
||
34 | 5'h1A: out_word = 5'h1D; |
||
35 | 5'h1B: out_word = 5'h1D; |
||
36 | 5'h1C: out_word = 5'h1D; |
||
37 | 5'h1D: out_word = 5'h1D; |
||
38 | 5'h1E: out_word = 5'h1D; |
||
39 | 5'h1F: out_word = 5'h00; |
||
40 | endcase |
||
41 | |||
42 | endmodule |