Use correct ir_width for libresoc JTAG TAP.
authorStaf Verhaegen <staf@stafverhaegen.be>
Thu, 1 Apr 2021 14:26:28 +0000 (16:26 +0200)
committerStaf Verhaegen <staf@stafverhaegen.be>
Thu, 1 Apr 2021 14:29:21 +0000 (16:29 +0200)
No need to define IDCODE anymore as default will now be OK.

cocotb/test.py

index 1ad8f1d7d85cf3ee5a7bdbe6fe8bf343e0016eda..c73790b21e2deff627a21ce0a10787764c6dd38e 100644 (file)
@@ -30,7 +30,8 @@ def setup_jtag(dut, *, tck_period):
         yield Timer(0)
     return JTAG_Master(dut.jtag_tck, dut.jtag_tms,
                        dut.jtag_tdi, dut.jtag_tdo,
-                       clk_period=tck_period)
+                       clk_period=tck_period,
+                       ir_width=4)
 
 def execute_svf(dut, *, jtag, svf_filename):
     jtag_svf = SVF_Executor(jtag)
@@ -43,7 +44,6 @@ def execute_svf(dut, *, jtag, svf_filename):
 #
 
 def idcode(dut, *, jtag):
-    jtag.IDCODE = [0, 0, 0, 1]
     yield jtag.idcode()
     result1 = jtag.result
     dut._log.info("IDCODE1: {}".format(result1))