mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-11-24 09:33:15 -05:00
PoC: Control access to FW RAM
Allow FW RAM access only in the following execution contexts: - Firmware mode - IRQ_SYSCALL_HI Input port `system_mode` of the `fw_ram` module is replaced with an enable port. Since access to FW RAM not longer depend only on system_mode
This commit is contained in:
parent
a871d23d5d
commit
62dba7c4fe
7 changed files with 92 additions and 37 deletions
|
|
@ -48,6 +48,8 @@ module tk1 #(
|
|||
input wire access_level_hi,
|
||||
input wire access_level_med,
|
||||
|
||||
output wire fw_ram_en,
|
||||
|
||||
input wire cs,
|
||||
input wire we,
|
||||
input wire [ 7 : 0] address,
|
||||
|
|
@ -202,6 +204,7 @@ module tk1 #(
|
|||
assign system_reset = system_reset_reg;
|
||||
|
||||
assign rom_exec_en = !system_mode | access_level_med | access_level_hi;
|
||||
assign fw_ram_en = !system_mode | access_level_hi;
|
||||
|
||||
//----------------------------------------------------------------
|
||||
// Module instance.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue