summaryrefslogtreecommitdiff
path: root/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'rtl')
-rw-r--r--rtl/core/fetch/prefetch.sv2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtl/core/fetch/prefetch.sv b/rtl/core/fetch/prefetch.sv
index 3d0eb88..255bd4d 100644
--- a/rtl/core/fetch/prefetch.sv
+++ b/rtl/core/fetch/prefetch.sv
@@ -20,7 +20,7 @@ module core_prefetch
logic[31:0] prefetch[SIZE];
logic[ORDER - 1:0] valid;
- assign insn = prefetch[0];
+ assign insn = ~flush ? prefetch[0] : `NOP;
assign next_pc = ~stall & |valid ? insn_pc + 1 : insn_pc;
always_comb