add pullup/pulldown/banksel to TAP.add_io()
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Jan 2022 16:44:59 +0000 (16:44 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 24 Jan 2022 17:32:42 +0000 (17:32 +0000)
c4m/nmigen/jtag/tap.py

index 18d8c5db96ed9bfd1d413375580b1383fa44b5ac..c93689f20fc4de80083cbe8b00c31bfb644509cb 100755 (executable)
@@ -543,7 +543,8 @@ class TAP(Elaboratable):
                     dmi.we_i.eq(ds.ongoing("WRRD")),
                 ]
 
-    def add_io(self, *, iotype, name=None, src_loc_at=0):
+    def add_io(self, *, iotype, name=None, src_loc_at=0,
+                                banksel=0, pullup=False, pulldown=False):
         """Add a io cell to the boundary scan chain
 
         Parameters:
@@ -555,7 +556,9 @@ class TAP(Elaboratable):
         if name is None:
             name = "ioconn" + str(len(self._ios))
 
-        ioconn = IOConn(iotype=iotype, name=name, src_loc_at=src_loc_at+1)
+        ioconn = IOConn(iotype=iotype, banksel=banksel,
+                        pullup=pullup, pulldown=pulldown,
+                        name=name, src_loc_at=src_loc_at+1)
         self._ios.append(ioconn)
         return ioconn