From d122dcace926a15b011d4c8c0a1655d349455547 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 27 Jul 2018 10:06:48 +0100 Subject: [PATCH] use quart wrapper for quart --- src/bsv/peripheral_gen/quart.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bsv/peripheral_gen/quart.py b/src/bsv/peripheral_gen/quart.py index ea70c04..b8269bc 100644 --- a/src/bsv/peripheral_gen/quart.py +++ b/src/bsv/peripheral_gen/quart.py @@ -4,13 +4,13 @@ from bsv.peripheral_gen.base import PBase class quart(PBase): def slowimport(self): - return "import Uart16550 :: *;" + return "import quart :: *;" def irq_name(self): return "quart{0}_intr" def slowifdecl(self): - return "interface RS232_PHY_Ifc quart{0}_coe;\n" + \ + return "interface QUART_out quart{0};\n" + \ "method Bit#(1) %s;" % self.irq_name() def get_clock_reset(self, name, count): @@ -29,19 +29,19 @@ class quart(PBase): return "quart{0}.slave_axi_uart" def pinname_out(self, pname): - return {'tx': 'coe_rs232.stx_out', - 'rts': 'coe_rs232.rts_out', + return {'tx': 'out.stx_out', + 'rts': 'out.rts_out', }.get(pname, '') def pinname_in(self, pname): - return {'rx': 'coe_rs232.srx_in', - 'cts': 'coe_rs232.cts_in' + return {'rx': 'out.srx_in', + 'cts': 'out.cts_in' }.get(pname, '') def __disabled_mk_pincon(self, name, count): ret = [PBase.mk_pincon(self, name, count)] ret.append("rule con_%s%d_io_in;" % (name, count)) - ret.append(" {0}{1}.coe_rs232.modem_input(".format(name, count)) + ret.append(" {0}{1}.out.modem_input(".format(name, count)) for idx, pname in enumerate(['rx', 'cts']): sname = self.peripheral.pname(pname).format(count) ps = "pinmux.peripheral_side.%s" % sname -- 2.30.2