mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-11-25 18:06:35 -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
|
|
@ -147,6 +147,7 @@ module application_fpga_sim (
|
|||
reg [31 : 0] fw_ram_write_data;
|
||||
wire [31 : 0] fw_ram_read_data;
|
||||
wire fw_ram_ready;
|
||||
wire fw_ram_en;
|
||||
|
||||
reg touch_sense_cs;
|
||||
reg touch_sense_we;
|
||||
|
|
@ -268,8 +269,7 @@ module application_fpga_sim (
|
|||
.clk(clk),
|
||||
.reset_n(reset_n),
|
||||
|
||||
.system_mode(system_mode),
|
||||
|
||||
.en(fw_ram_en),
|
||||
.cs(fw_ram_cs),
|
||||
.we(fw_ram_we),
|
||||
.address(fw_ram_address),
|
||||
|
|
@ -383,6 +383,8 @@ module application_fpga_sim (
|
|||
.access_level_hi (irq31_eoi),
|
||||
.access_level_med(irq30_eoi),
|
||||
|
||||
.fw_ram_en(fw_ram_en),
|
||||
|
||||
.cs(tk1_cs),
|
||||
.we(tk1_we),
|
||||
.address(tk1_address),
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ module tb_application_fpga_sim ();
|
|||
//----------------------------------------------------------------
|
||||
initial begin
|
||||
// End simulation after XXX time units (set by timescale)
|
||||
#1600;
|
||||
#3000;
|
||||
$display("TIMEOUT");
|
||||
$finish;
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue