summaryrefslogtreecommitdiff
path: root/rtl/core/control/issue.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2022-11-08 00:19:49 -0600
committerAlejandro Soto <alejandro@34project.org>2022-11-08 00:19:49 -0600
commitac0d6f4e068ff0ff08f05e04053ebd53ba20bcb8 (patch)
tree8c2019cb296f94b2fd39894a245a4aac899d2371 /rtl/core/control/issue.sv
parent942461c315db3269fcbe9a9ca18beee9afa78d9c (diff)
Refactor decode signals into unified insn_decode struct
Diffstat (limited to 'rtl/core/control/issue.sv')
-rw-r--r--rtl/core/control/issue.sv28
1 files changed, 14 insertions, 14 deletions
diff --git a/rtl/core/control/issue.sv b/rtl/core/control/issue.sv
index 6ad27f7..5ed03f0 100644
--- a/rtl/core/control/issue.sv
+++ b/rtl/core/control/issue.sv
@@ -2,34 +2,34 @@
module core_control_issue
(
- input logic clk,
+ input logic clk,
- input datapath_decode dec,
- input ptr fetch_insn_pc,
+ input insn_decode dec,
+ input ptr fetch_insn_pc,
- input ctrl_cycle next_cycle,
- input logic next_bubble,
+ input ctrl_cycle next_cycle,
+ input logic next_bubble,
`ifdef VERILATOR
- input word insn,
+ input word insn,
`endif
- output logic issue,
- undefined,
- output ptr pc,
- pc_visible,
- next_pc_visible
+ output logic issue,
+ undefined,
+ output ptr pc,
+ pc_visible,
+ next_pc_visible
);
- assign issue = next_cycle == ISSUE && dec.execute && !next_bubble;
+ assign issue = next_cycle == ISSUE && dec.ctrl.execute && !next_bubble;
assign next_pc_visible = fetch_insn_pc + 2;
always_ff @(posedge clk)
if(next_cycle == ISSUE) begin
- undefined <= dec.undefined;
+ undefined <= dec.ctrl.undefined;
`ifdef VERILATOR
- if(dec.undefined)
+ if(dec.ctrl.undefined)
$display("[core] undefined insn: [0x%08x] %08x", fetch_insn_pc << 2, insn);
`endif