From a65fd4ed8c4d3468a56d8530379f88a43997bb11 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: Sat, 11 May 2024 22:51:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=BA=9B=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dip/dip.v | 2 +- led/tb_led.v | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dip/dip.v b/dip/dip.v index e7e8eb2..5c0875c 100644 --- a/dip/dip.v +++ b/dip/dip.v @@ -3,6 +3,6 @@ module dip( output led // g14 ); -assign led = !dip; +assign led = dip; endmodule \ No newline at end of file diff --git a/led/tb_led.v b/led/tb_led.v index 2312aa5..3ce7679 100644 --- a/led/tb_led.v +++ b/led/tb_led.v @@ -21,7 +21,7 @@ end // 例化, 并传入一些参数 led u_led( .key (td_key), - .led (td_led) + .led (td_led) // 输出需要是 wire类型, 虽然led模块内部, 他是reg类型, 不过对于外部而言, 他不是alaways中涉及的信号, 所以需要使用 wire类型 // .xx () // 如果还有其他的管脚, 空白表示 不连了, 悬空 );