From 5e86087b1511a97e3e8a42a6577fd321bc52e3b6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 30 Jul 2018 10:06:20 +0100 Subject: [PATCH] add iocell peripheral and jtag pins --- src/bsv/bsv_lib/soc_template.bsv | 4 +++- src/bsv/peripheral_gen/jtag.py | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/bsv/bsv_lib/soc_template.bsv b/src/bsv/bsv_lib/soc_template.bsv index da213b7..dbe9f7e 100644 --- a/src/bsv/bsv_lib/soc_template.bsv +++ b/src/bsv/bsv_lib/soc_template.bsv @@ -313,7 +313,9 @@ package socgen; interface master=fabric.v_to_slaves [fromInteger(valueOf(Sdram_slave_num))]; `endif - interface slow_ios=slow_peripherals.slow_ios; + interface slow_ios = slow_peripherals.slow_ios; + interface iocell_side = slow_peripherals.iocell_side; + {6} endmodule endpackage diff --git a/src/bsv/peripheral_gen/jtag.py b/src/bsv/peripheral_gen/jtag.py index 2016b0b..c0891fd 100644 --- a/src/bsv/peripheral_gen/jtag.py +++ b/src/bsv/peripheral_gen/jtag.py @@ -13,6 +13,19 @@ class jtag(PBase): # YUK! return "interface Ifc_jtagdtm jtag{0}_out;".format(count) + def get_clock_reset(self, name, count): + return "tck, trst" + + def pinname_in(self, pname): + return {'tms': 'tms', + 'tdi': 'tdi', + }.get(pname, '') + + def pinname_out(self, pname): + return {'tck': 'tck', + 'tdo': 'tdo', + }.get(pname, '') + def mkfast_peripheral(self): return """\ Ifc_jtagdtm jtag{0} <-mkjtagdtm(clocked_by tck, reset_by trst); -- 2.30.2