BinaryValue API change.
[c4m-jtag.git] / 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