diff --git a/led_matrix/key.v b/led_matrix/key.v index a693e5c..3a1a685 100644 --- a/led_matrix/key.v +++ b/led_matrix/key.v @@ -63,12 +63,11 @@ reg [7:0] y; always @(posedge sys_clk or negedge sys_rst) begin if (sys_rst == 1'b0) begin x <= 8'b0000_0000; + y <= 8'b1111_1111; end else begin - x <= KEY_CODE + x <= KEY_CODE; end - - endcase end lm u_lm(