put jtag interface straight out, not with bscan etc
[pinmux.git] / src / bsv / peripheral_gen / base.py
index 0cc11df529aca7517115ab82434e4655443b3244..23adfb687cc295e2e9cd677a7e633a2aeb7a38cd 100644 (file)
@@ -210,11 +210,18 @@ class PBase(object):
     def extfastifinstance(self, name, count):
         return ''
 
-    def extifinstance(self, name, count):
-        sname = self.peripheral.iname().format(count)
+    def _extifinstance(self, name, count, suffix, prefix, samename=False):
         pname = self.get_iname(count)
-        template = "        interface {0} = pinmux.peripheral_side.{1};"
-        return template.format(pname, sname)
+        if samename:
+            sname = pname
+        else:
+            sname = self.peripheral.iname().format(count)
+        template = "        interface {0}{3} = {2}{1};"
+        return template.format(pname, sname, prefix, suffix)
+
+    def extifinstance(self, name, count):
+        return self._extifinstance(name, count, "",
+                                            "pinmux.peripheral_side.")
 
 
 mkplic_rule = """\