From 0044ec8ae293600cd4dc6b98640e68ffe8bb7438 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 8 Apr 2021 21:38:55 +0100 Subject: [PATCH] upload over 32-bit JTAG Wishbone --- src/soc/debug/firmware_upload.py | 31 ++++++++++++++++++++++--------- src/soc/simulator/program.py | 9 +++++++++ 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/src/soc/debug/firmware_upload.py b/src/soc/debug/firmware_upload.py index e388243e..b16309cc 100644 --- a/src/soc/debug/firmware_upload.py +++ b/src/soc/debug/firmware_upload.py @@ -21,6 +21,7 @@ from nmutil.util import wrap from soc.debug.jtagutils import (jtag_read_write_reg, jtag_srv, jtag_set_reset, jtag_set_ir, jtag_set_get_dr) +from soc.simulator.program import Program def test_pinset(): return { @@ -84,7 +85,7 @@ def jtag_sim(dut, firmware): # write DMI CTRL register - STOP and RESET status = yield from writeread_dmi_addr(dut, DBGCore.CTRL, 0b011) print ("dmi ctrl status", hex(status)) - assert status == 4 # returned old value (nice! cool feature!) + assert status == 0 # returned old value (nice! cool feature!) # read STAT and wait for "STOPPED" while True: @@ -93,23 +94,23 @@ def jtag_sim(dut, firmware): if (status & (1<