BinaryValue API change.
authorStaf Verhaegen <staf@stafverhaegen.be>
Wed, 25 Dec 2019 14:21:35 +0000 (15:21 +0100)
committerStaf Verhaegen <staf@stafverhaegen.be>
Mon, 6 Jan 2020 17:06:14 +0000 (18:06 +0100)
c4m/cocotb/jtag/c4m_jtag.py

index 7fc5ca77fd2491b8b329c1cb8b46ac9892ceb1ac..c4bb5af7ea7ccce9c3a437e66b6222453aa5e24f 100644 (file)
@@ -122,7 +122,7 @@ class JTAG_Master(object):
             cmd_copy = [int(c) for c in cmd.binstr]
         else:
             cmd_copy = list(cmd)
-        result = BinaryValue(bits=len(cmd_copy))
+        result = BinaryValue(n_bits=len(cmd_copy))
         l_result = list()
 
         yield self.change_to_run()
@@ -149,7 +149,7 @@ class JTAG_Master(object):
         result will contain the 32 bit IDCODE of the device
         """
 
-        result = BinaryValue(bits=32)
+        result = BinaryValue(n_bits=32)
         l_result = list()
 
         # Keep tdi 0 for the whole run