From 1b4e8993db8f0d7f981e6768046b2fe4f12cd705 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 28 Feb 2022 18:12:16 +0000 Subject: [PATCH] fix undefined uart_tx in icarus simulation, icarus is damn smart, it respects undefined values and propagates them. kinda cool --- src/simsoctb.v | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/simsoctb.v b/src/simsoctb.v index ea0bf15..5a5dd26 100644 --- a/src/simsoctb.v +++ b/src/simsoctb.v @@ -68,12 +68,8 @@ module simsoctb; assign dram_dqs_n = (dram_dqs != 2'hz) ? ~dram_dqs : 2'hz; // uart, LEDs, switches - reg uart_tx; - wire uart_rx; - reg [3:0] wishbone_sel = 0; - reg wishbone_cyc = 0; - reg wishbone_stb = 0; - reg wishbone_we = 0; + wire uart_tx ; + reg uart_rx = 0; wire led_0; wire led_1; wire led_2; @@ -154,7 +150,7 @@ module simsoctb; initial begin // run for a set time period then exit - #50000; + #5000000; $finish; end -- 2.30.2