diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-10-23 23:27:51 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-10-23 23:27:51 -0600 |
| commit | 1e17c6994897bc2edbde3b52db6a1e39d9a20f03 (patch) | |
| tree | 7fdb115cb159eaa7231739073c24215f84550732 /rtl/core/decode | |
| parent | 1ad7b946c13493a19fcebb0d1d1e1c4397f476e8 (diff) | |
Move branch control signals to struct branch_decode
Diffstat (limited to 'rtl/core/decode')
| -rw-r--r-- | rtl/core/decode/decode.sv | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/rtl/core/decode/decode.sv b/rtl/core/decode/decode.sv index 9367e6d..cd3ee53 100644 --- a/rtl/core/decode/decode.sv +++ b/rtl/core/decode/decode.sv @@ -3,20 +3,19 @@ module core_decode ( - input word insn, - input psr_flags flags, - - output logic execute, - conditional, - undefined, - writeback, - update_flags, - uses_rn, - branch, - output ptr branch_offset, - output snd_decode snd_ctrl, - output data_decode data_ctrl, - output ldst_decode ldst_ctrl + input word insn, + input psr_flags flags, + + output logic execute, + conditional, + undefined, + writeback, + update_flags, + uses_rn, + output branch_decode branch_ctrl, + output snd_decode snd_ctrl, + output data_decode data_ctrl, + output ldst_decode ldst_ctrl ); //TODO @@ -45,12 +44,13 @@ module core_decode .* ); - logic branch_link; + logic branch, branch_link; + assign branch_ctrl.branch = branch; core_decode_branch group_branch ( .link(branch_link), - .offset(branch_offset), + .offset(branch_ctrl.offset), .* ); |
