caliptra-rtl
caliptra-rtl copied to clipboard
Add test for JTAG during uC reset
Test for issue https://github.com/chipsalliance/caliptra-rtl/issues/523 resolved by PR https://github.com/chipsalliance/caliptra-rtl/pull/541.
The test flow description:
- Initiate Caliptra boot flow from the testbench typical for every test suite. The test suite awaits
BOOTFSM_GO
register value0
in a loop. - Connect to Caliptra via JTAG (OpenOCD).
- JTAG: Write
0
toBOOTFSM_GO
register to ensure uC will not leave reset state unless permitted. - Caliptra SW: Initiate Firmware Update Reset which puts uC in Boot FSM wait state due to
BOOTFSM_GO
set to0
. - JTAG: Read
dmstatus
register until uC is in reset state. - JTAG: Write
1
toBOOTFSM_GO
register to proceed with boot flow. - Caliptra SW: If reset was successful, write
1
to the mailbox to indicate successful boot. - JTAG: Read the mailbox until it contains
1
and finish the test.
This test has been confirmed to fail before https://github.com/chipsalliance/caliptra-rtl/pull/541/commits/a1a2d697c7e253af5b5a0a57921072fb990ae5ae.