diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-09-25 23:35:28 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-09-25 23:35:28 -0600 |
| commit | 14d06f0bc047ad79830890807bfe6195ba3de8ff (patch) | |
| tree | 21b252fd9189d91a855342945bb28012ff529d82 /rtl/core/cycles.sv | |
| parent | 43829e0400f0a7aaccbb1ebefb44a38c41749e77 (diff) | |
Define ALU control signal set
Diffstat (limited to '')
| -rw-r--r-- | rtl/core/cycles.sv | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/rtl/core/cycles.sv b/rtl/core/cycles.sv index ff4eb34..84bbd32 100644 --- a/rtl/core/cycles.sv +++ b/rtl/core/cycles.sv @@ -11,16 +11,16 @@ module core_cycles input alu_decode dec_alu, input ptr fetch_insn_pc, - output logic stall, - branch, - writeback, - update_flags, - output reg_num rd, - output ptr branch_target, - pc, - pc_visible, - output psr_mode reg_mode, - output alu_op data_op + output logic stall, + branch, + writeback, + update_flags, + output reg_num rd, + output ptr branch_target, + pc, + pc_visible, + output psr_mode reg_mode, + output alu_control alu ); enum @@ -48,9 +48,15 @@ module core_cycles branch_target <= pc_visible + dec_branch_offset; end + alu.op <= dec_alu.op; + alu.shl <= dec_alu.shl; + alu.shr <= dec_alu.shr; + alu.ror <= dec_alu.ror; + alu.put_carry <= dec_alu.put_carry; + alu.sign_extend <= dec_alu.sign_extend; + pc <= fetch_insn_pc; rd <= dec_alu.rd; - data_op <= dec_alu.op; update_flags <= dec_update_flags; end end |
