format and comment quart
[shakti-peripherals.git] / src / peripherals / uart / quart.bsv
index 2dc6c7ee50e260e9c97dc766bb2b67210a41c4df..f8aee3dde5d3860e57ad9f0b5a3e166b9f76b90a 100644 (file)
@@ -56,21 +56,18 @@ package quart;
                                         (QUART_AXI4_Lite_Ifc);
 
     Uart16550_AXI4_Lite_Ifc uart <- mkUart16550(core_clock, core_reset);
-    //uart.pin_dsr_sync <= in; 
-    //uart.pin_ri_sync  <= in; 
-    //uart.pin_dcd_sync <= in; 
-    Bit#(1) v1 = 1;
-    Bit#(1) v0 = 1;
-    let dsr_in = uart.coe_rs232.dsr_in.put;
-    dsr_in = v1;
-    let dcd_in = uart.coe_rs232.dcd_in.put;
-    dcd_in = v1;
-    let ri_in = uart.coe_rs232.ri_in.put;
-    ri_in = v0;
-
-    let temp2 <- uart.coe_rs232.dtr_out.get;
-    Bit#(1) temp = temp2;
-    uart.coe_rs232.dtr_out.get(temp);
+
+    // ok set up CDC and dsr to 1, and Ring to 0. and otherwise ignore them
+       rule rl_put;
+        uart.coe_rs232.dsr_in.put(1);
+        uart.coe_rs232.dcd_in.put(1);
+        uart.coe_rs232.ri_in.put(0);
+       endrule
+    
+    // deliberately drop (ignore) this value
+       rule rl_get;
+        let temp2 <- uart.coe_rs232.dtr_out.get;
+       endrule
 
     interface out = interface QUART_out
         interface srx_in = interface Put