diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-13 05:22:23 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-13 05:54:44 -0600 |
| commit | d463acba5f9589085afb3dcc4058d82908ff90f2 (patch) | |
| tree | e4ba47f2f9daa8e25b5c244f7af934ff18b54cbc /rtl/core/uarch.sv | |
| parent | 6cb000adf57d7af2ec4aac8fd93d12f09cc63556 (diff) | |
Convert core state machines to Quartus-inferring RTL
Diffstat (limited to 'rtl/core/uarch.sv')
| -rw-r--r-- | rtl/core/uarch.sv | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/rtl/core/uarch.sv b/rtl/core/uarch.sv index 5b88559..d553104 100644 --- a/rtl/core/uarch.sv +++ b/rtl/core/uarch.sv @@ -124,7 +124,7 @@ typedef struct packed logic[5:0] shift_imm; } snd_decode; -typedef enum +typedef enum int unsigned { LDST_WORD, LDST_BYTE, @@ -181,17 +181,18 @@ typedef struct packed coproc_decode coproc; } insn_decode; -typedef enum +// Ver comentario en cycles.sv, este diseño es más óptimo +typedef struct packed { - ISSUE, - RD_INDIRECT_SHIFT, - WITH_SHIFT, - TRANSFER, - BASE_WRITEBACK, - EXCEPTION, - MUL, - MUL_ACC_LD, - MUL_HI_WB + logic issue, + rd_indirect_shift, + with_shift, + transfer, + base_writeback, + exception, + mul, + mul_acc_ld, + mul_hi_wb; } ctrl_cycle; typedef struct packed |
