diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-09-25 15:04:41 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-09-25 15:04:41 -0600 |
| commit | 4fe334c57ea5549bbbfa1b82142ba97012e304f5 (patch) | |
| tree | b6e1242a04cc2cb82f6b59f7088b30685bb736c2 /rtl/core | |
| parent | d3e69694e8bdc1c0577362228302bbe97347aa34 (diff) | |
Fetch NOP on prefetch flush
Diffstat (limited to 'rtl/core')
| -rw-r--r-- | rtl/core/fetch/prefetch.sv | 2 |
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 |
