mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-11-21 00:02:26 -05:00
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:
parent
fe16cc9f72
commit
d07abc7ad2
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ module tb_tk1 ();
|
||||||
read_check_word(ADDR_APP_SIZE, 32'h47114711);
|
read_check_word(ADDR_APP_SIZE, 32'h47114711);
|
||||||
|
|
||||||
$display("--- test5: Switch to app mode.");
|
$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.");
|
$display("--- test5: Write app start address and size again.");
|
||||||
write_word(ADDR_APP_START, 32'hdeadbeef);
|
write_word(ADDR_APP_START, 32'hdeadbeef);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue