diff options
| -rw-r--r-- | rtl/core/fetch/fetch.sv | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/rtl/core/fetch/fetch.sv b/rtl/core/fetch/fetch.sv index 9b21dd2..e8f4832 100644 --- a/rtl/core/fetch/fetch.sv +++ b/rtl/core/fetch/fetch.sv @@ -3,19 +3,20 @@ module core_fetch #(parameter PREFETCH_ORDER=2) ( - input logic clk, - stall, - flush, - fetched, - input logic[31:0] fetch_data, + input logic clk, + stall, + flush, + fetched, + input word fetch_data, + input ptr target, - output logic fetch, - output logic[31:0] insn, - output logic[29:0] insn_pc, - addr + output logic fetch, + output word insn, + output ptr insn_pc, + addr ); - logic[29:0] next_pc; + ptr next_pc; core_prefetch #(.ORDER(PREFETCH_ORDER)) prefetch ( @@ -28,8 +29,6 @@ module core_fetch else if(fetched) addr <= addr + 1; - initial begin - addr = 0; - end + initial addr = 0; endmodule |
