From 34bbc94c8dee148e71ba01824f08c08e3eec5159 Mon Sep 17 00:00:00 2001 From: Staf Verhaegen Date: Thu, 1 Apr 2021 16:26:28 +0200 Subject: [PATCH] Use correct ir_width for libresoc JTAG TAP. No need to define IDCODE anymore as default will now be OK. --- cocotb/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocotb/test.py b/cocotb/test.py index 1ad8f1d..c73790b 100644 --- a/cocotb/test.py +++ b/cocotb/test.py @@ -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)) -- 2.30.2