fix undefined uart_tx in icarus simulation, icarus is damn smart,
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 28 Feb 2022 18:12:16 +0000 (18:12 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 28 Feb 2022 18:12:16 +0000 (18:12 +0000)
it respects undefined values and propagates them. kinda cool

src/simsoctb.v

index ea0bf153d112bb10b1872d4db3b9862c7d9bf670..5a5dd26fc68482d9aefc999d343191da70dba500 100644 (file)
@@ -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