mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-20 13:24:24 -05:00
Move force_jump function to top level mem system
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
This commit is contained in:
parent
86ea45e10a
commit
8ba97e16f3
@ -207,9 +207,6 @@ module application_fpga(
|
||||
|
||||
|
||||
rom rom_inst(
|
||||
.force_jump(force_jump),
|
||||
.jump_instr(jump_instr),
|
||||
|
||||
.cs(rom_cs),
|
||||
.address(rom_address),
|
||||
.read_data(rom_read_data),
|
||||
@ -418,6 +415,11 @@ module application_fpga(
|
||||
tk1_write_data = cpu_wdata;
|
||||
|
||||
if (cpu_valid && !muxed_ready_reg) begin
|
||||
if (force_jump) begin
|
||||
muxed_rdata_new = jump_instr;
|
||||
muxed_ready_new = 1'h1;
|
||||
end
|
||||
else begin
|
||||
case (area_prefix)
|
||||
ROM_PREFIX: begin
|
||||
rom_cs = 1'h1;
|
||||
@ -494,6 +496,7 @@ module application_fpga(
|
||||
endcase // case (area_prefix)
|
||||
end
|
||||
end
|
||||
end
|
||||
endmodule // application_fpga
|
||||
|
||||
//======================================================================
|
||||
|
@ -15,9 +15,6 @@
|
||||
`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,
|
||||
@ -63,12 +60,7 @@ module rom(
|
||||
begin : rom_logic
|
||||
|
||||
/* verilator lint_off WIDTH */
|
||||
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…
Reference in New Issue
Block a user