mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-07 22:22:29 -04:00
Add CPU execution monitor
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
e514f778b2
commit
86ea45e10a
3 changed files with 153 additions and 50 deletions
|
@ -15,6 +15,9 @@
|
|||
`default_nettype none
|
||||
|
||||
module rom(
|
||||
input wire force_jump,
|
||||
input wire [31 : 0] jump_instr,
|
||||
|
||||
input wire cs,
|
||||
/* verilator lint_off UNUSED */
|
||||
input wire [11 : 0] address,
|
||||
|
@ -60,7 +63,12 @@ module rom(
|
|||
begin : rom_logic
|
||||
|
||||
/* verilator lint_off WIDTH */
|
||||
rom_rdata = memory[address];
|
||||
if (force_jump) begin
|
||||
rom_rdata = jump_instr;
|
||||
end
|
||||
else begin
|
||||
rom_rdata = memory[address];
|
||||
end
|
||||
/* verilator lint_on WIDTH */
|
||||
rom_ready = cs;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue