// 入力ポート用のセレクタ
always @* begin
if (read_strobe==1'b1) begin
case (port_id)
8'h00 : in_port <= input_data_latch;
8'h01 : in_port <= {6'b000000, ope_is_idle, int_cnt_is_zero};
8'h02 : in_port <= upper_4hex_data[15:8];
8'h03 : in_port <= upper_4hex_data[7:0];
8'h04 : in_port <= lower_4hex_data[15:8];
8'h05 : in_port <= lower_4hex_data[7:0];
default : // 6
in_port <= {cursor_position, 1'b0, cursor_move, left_level, right_level};
endcase
end else
in_port <= 8'bxxxx_xxxx;
end
日 | 月 | 火 | 水 | 木 | 金 | 土 |
---|---|---|---|---|---|---|
- | - | - | - | - | 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 | - | - | - | - | - | - |