PoC: tb: Fix tb_tk1 test5 (APP_START/APP_SIZE)

Fix test1. It broke while implementing interrupt based syscalls.

Instead of writing to ADDR_SYSTEM_MODE_CTRL, app mode is now entered
automatically when executing outside of ROM.
This commit is contained in:
Mikael Ågren 2024-12-18 09:11:50 +01:00
parent fe16cc9f72
commit d07abc7ad2
No known key found for this signature in database
GPG Key ID: E02DA3D397792C46

View File

@ -519,7 +519,7 @@ module tb_tk1 ();
read_check_word(ADDR_APP_SIZE, 32'h47114711);
$display("--- test5: Switch to app mode.");
write_word(ADDR_SYSTEM_MODE_CTRL, 32'hf000000);
fetch_instruction(APP_RAM_START);
$display("--- test5: Write app start address and size again.");
write_word(ADDR_APP_START, 32'hdeadbeef);