From: rahulb Date: Fri, 27 Jul 2018 08:03:37 +0000 (+0530) Subject: fix quart rules X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d4e16aebe4a95443fa12972695d86c16096ed6b;p=shakti-peripherals.git fix quart rules --- diff --git a/src/peripherals/uart/quart.bsv b/src/peripherals/uart/quart.bsv index 2dc6c7e..392dcdd 100644 --- a/src/peripherals/uart/quart.bsv +++ b/src/peripherals/uart/quart.bsv @@ -59,18 +59,19 @@ package quart; //uart.pin_dsr_sync <= in; //uart.pin_ri_sync <= in; //uart.pin_dcd_sync <= in; + rule rl_put; 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; - + uart.coe_rs232.dsr_in.put(1); + + uart.coe_rs232.dcd_in.put(1); + uart.coe_rs232.ri_in.put(0); + endrule + + + rule rl_get; let temp2 <- uart.coe_rs232.dtr_out.get; - Bit#(1) temp = temp2; - uart.coe_rs232.dtr_out.get(temp); + endrule interface out = interface QUART_out interface srx_in = interface Put