From: Luke Kenneth Casson Leighton Date: Thu, 8 Apr 2021 20:38:55 +0000 (+0100) Subject: upload over 32-bit JTAG Wishbone X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0044ec8ae293600cd4dc6b98640e68ffe8bb7438;p=soc.git upload over 32-bit JTAG Wishbone --- 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<