From ea7d9c4d5d6f11ac11d9ddb64c88521610d4c9d4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 24 Jan 2022 16:44:59 +0000 Subject: [PATCH] add pullup/pulldown/banksel to TAP.add_io() --- c4m/nmigen/jtag/tap.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/c4m/nmigen/jtag/tap.py b/c4m/nmigen/jtag/tap.py index 18d8c5d..c93689f 100755 --- a/c4m/nmigen/jtag/tap.py +++ b/c4m/nmigen/jtag/tap.py @@ -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 -- 2.30.2