uart clock and reset
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Jul 2018 04:47:28 +0000 (05:47 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Jul 2018 04:47:28 +0000 (05:47 +0100)
src/bsv/peripheral_gen/quart.py

index 14e08088cf769d3cb5380ba094bf1c7e780520fc..83fd81014c4cc41fe0735173dea5ae9b1b2954fe 100644 (file)
@@ -14,7 +14,7 @@ class quart(PBase):
                "method Bit#(1) %s;" % self.irq_name()
 
     def get_clock_reset(self, name, count):
-        return "uart_clock,uart_reset"  # XXX TODO: change to uart_clock/reset
+        return "uart_clock,uart_reset"
 
     def num_axi_regs32(self):
         return 8
@@ -76,7 +76,7 @@ class quart(PBase):
 uart_plic_template = """\
 // PLIC {0} synchronisation with irq {1}
 SyncBitIfc#(Bit#(1)) {0}_interrupt <-
-                            mkSyncBitToCC(sp_clock, uart_reset);
+                            mkSyncBitToCC(uart_clock, uart_reset);
 rule plic_synchronize_{0}_interrupt_{1};
      {0}_interrupt.send({0}.irq);
 endrule