summaryrefslogtreecommitdiff
path: root/rtl/core/uarch.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/uarch.sv
parent942461c315db3269fcbe9a9ca18beee9afa78d9c (diff)
Refactor decode signals into unified insn_decode struct
Diffstat (limited to '')
-rw-r--r--rtl/core/uarch.sv12
1 files changed, 12 insertions, 0 deletions
diff --git a/rtl/core/uarch.sv b/rtl/core/uarch.sv
index d4654a7..1d43caf 100644
--- a/rtl/core/uarch.sv
+++ b/rtl/core/uarch.sv
@@ -169,6 +169,18 @@ typedef struct packed
reg_num crn, crm;
} coproc_decode;
+typedef struct packed
+{
+ datapath_decode ctrl;
+ psr_decode psr;
+ branch_decode branch;
+ snd_decode snd;
+ data_decode data;
+ ldst_decode ldst;
+ mul_decode mul;
+ coproc_decode coproc;
+} insn_decode;
+
typedef enum
{
ISSUE,