add fast bus instance
[pinmux.git] / src / bsv / peripheral_gen / jtag.py
index 75106096f0ba9e49847b7314d643abb87521e628..04d4481cbd29c3d08b6a261be1aa0dd4c81bf3c7 100644 (file)
@@ -6,6 +6,31 @@ class jtag(PBase):
     def slowimport(self):
         return "    import jtagtdm::*;\n"
 
+    def extfastifinstance(self, name, count):
+        # YUK!
+        print "jtag", name, count
+        return """\
+            method Action tms_i(Bit#(1) tms);
+                {0}.tms_i(tms);
+            endmethod
+            method Action tdi_i(Bit#(1) tdi);
+                {0}.tdi_i(tdi);
+            endmethod
+            method Action bs_chain_i(Bit#(1) bs_chain);
+                {0}.bs_chain_i(bs_chain);
+            endmethod
+            method Bit#(1) shiftBscan2Edge={0}.shiftBscan2Edge;
+            method Bit#(1) selectJtagInput={0}.selectJtagInput;
+            method Bit#(1) selectJtagOutput={0}.selectJtagOutput;
+            method Bit#(1) updateBscan={0}.updateBscan;
+            method Bit#(1) bscan_in={0}.bscan_in;
+            method Bit#(1) scan_shift_en={0}.scan_shift_en;
+            method Bit#(1) tdo={0}.tdo;
+            method Bit#(1) tdo_oe={0}.tdo_oe;
+""".format(self.name, count)
+
+
+
     def fastifdecl(self, name, count):
         # YUK!
         template = """ \