overhaul of interpreter, update ships to match; "make test" works now
[fleet.git] / ships / Debug.ship
index 549633c..a34679b 100644 (file)
@@ -65,7 +65,10 @@ public void service() {
   assign uart_cts = 0;
   assign rst_out = rst_in && !break;
 
-  sasc_brg sasc_brg(clk, rst_in, 3, 65, sio_ce, sio_ce_x4);
+  // fst=3 means clock divider is 3+2=5 for a 50Mhz clock => 10Mhz
+  // using a 33Mhz clock,
+  //   33.333Mhz / 38400hz * 4 = 217.013 => 215+2,1
+  sasc_brg sasc_brg(clk, rst_in, 215, 1, sio_ce, sio_ce_x4);
   sasc_top sasc_top(clk, rst_in,
                     uart_in,
                     uart_out,