add iocell peripheral and jtag pins
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Jul 2018 09:06:20 +0000 (10:06 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 30 Jul 2018 09:06:20 +0000 (10:06 +0100)
src/bsv/bsv_lib/soc_template.bsv
src/bsv/peripheral_gen/jtag.py

index da213b72811e68ca6864fb664df34954f560e2ff..dbe9f7e913da97d6659840bdd4581c4b03e16d03 100644 (file)
@@ -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
index 2016b0b6c13617022647642540a9c96c82937600..c0891fddf7693d3eb757127cd49931169f1396dd 100644 (file)
@@ -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);