match ir_width with experiment10 and do not overwrite IDCODE
[soc-cocotb-sim.git] / ls180 / cocotb / test.py
index c01bad9e29aed74e7c8243e81e8aa520c51e2ff7..363e54fd9ed5f022853e7d97e7d5e9ec72f522b3 100644 (file)
@@ -30,7 +30,8 @@ def setup_jtag(dut, *, tck_period):
         yield Timer(0)
     return JTAG_Master(dut.tck_from_pad, dut.tms_from_pad,
                        dut.tdi_from_pad, dut.tdo_to_pad,
-                       clk_period=tck_period)
+                       clk_period=tck_period,
+                       ir_width=3)
 
 def execute_svf(dut, *, jtag, svf_filename):
     jtag_svf = SVF_Executor(jtag)
@@ -43,7 +44,7 @@ def execute_svf(dut, *, jtag, svf_filename):
 #
 
 def idcode(dut, *, jtag):
-    jtag.IDCODE = [0, 0, 0, 1]
+    #jtag.IDCODE = [0, 0, 0, 1]
     yield jtag.idcode()
     result1 = jtag.result
     dut._log.info("IDCODE1: {}".format(result1))