From d374da4d977451f0784e4e00c722624339380ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=B3=E5=85=89=E5=B0=91=E5=B9=B4?= <849317537@qq.com> Date: Wed, 15 May 2024 10:25:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=8B=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- led_matrix/tb_lm_2.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/led_matrix/tb_lm_2.v b/led_matrix/tb_lm_2.v index cd711c6..05cf7b0 100644 --- a/led_matrix/tb_lm_2.v +++ b/led_matrix/tb_lm_2.v @@ -97,7 +97,7 @@ always @(posedge sys_clk or negedge sys_rst) begin end end - +// 异步信号, 通过比较上次时钟周期的状态和当前时钟周期的状态得到当前是否按下了 always @(posedge sys_clk or negedge sys_rst) begin if (sys_rst == 1'b0) begin key <= 1'b0;