implement more instructions in unit::alu_branch #14

Merged
programmerjake merged 10 commits from programmerjake/cpu:more-alu-branch into master 2026-05-29 02:23:09 +00:00

Also changes the implementation for each of the *MOp types to hdl_modules.

Previously implemented:

  • AddSubMOp
  • BranchMOp

Newly implemented:

  • CompareMOp
  • ShiftRotateMOp (discovered the operation semantics were broken, so redid that)
  • LogicalFlagsMOp
  • LogicalMOp

Not implemented:

  • ReadSpecialMOp (maybe this should not be in AluBranchMOp?)

Testing:

  • All rename_execute_retire tests pass with unit::alu_branch (test_rename_execute_retire_*_real)
  • Need more thorough testing of input/output values (probably a different PR)
Also changes the implementation for each of the `*MOp` types to `hdl_module`s. Previously implemented: * AddSubMOp * BranchMOp Newly implemented: * CompareMOp * ShiftRotateMOp (discovered the operation semantics were broken, so redid that) * LogicalFlagsMOp * LogicalMOp Not implemented: * ReadSpecialMOp (maybe this should not be in AluBranchMOp?) Testing: * All rename_execute_retire tests pass with `unit::alu_branch` (`test_rename_execute_retire_*_real`) * Need more thorough testing of input/output values (probably a different PR)
programmerjake added 6 commits 2026-05-26 06:35:41 +00:00
programmerjake force-pushed more-alu-branch from 3bff2bd224 to b25448a275 2026-05-26 06:43:34 +00:00 Compare
programmerjake added 2 commits 2026-05-27 03:11:59 +00:00
programmerjake added 1 commit 2026-05-28 08:44:41 +00:00
redo ShiftRotateMOp and write actual operation definition in doc comment
All checks were successful
/ test (pull_request) Successful in 6m56s
7481d079d5
programmerjake added 1 commit 2026-05-29 02:16:32 +00:00
unit::alu_branch::compare: implement CmpRBOne/CmpRBTwo/CmpEqB
All checks were successful
/ test (pull_request) Successful in 5m56s
/ test (push) Successful in 6m50s
7acfaebfde
programmerjake changed title from WIP: implement more instructions in unit::alu_branch to implement more instructions in unit::alu_branch 2026-05-29 02:17:31 +00:00
programmerjake scheduled this pull request to auto merge when all checks succeed 2026-05-29 02:22:47 +00:00
programmerjake merged commit 7acfaebfde into master 2026-05-29 02:23:09 +00:00
programmerjake deleted branch more-alu-branch 2026-05-29 02:23:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: libre-chip/cpu#14
No description provided.