Skip to content

implemented zbb instructions (logic-not, min/max, sign/zero ext)#196

Open
MSh-786 wants to merge 3 commits intomainfrom
zbb-implementation
Open

implemented zbb instructions (logic-not, min/max, sign/zero ext)#196
MSh-786 wants to merge 3 commits intomainfrom
zbb-implementation

Conversation

@MSh-786
Copy link
Contributor

@MSh-786 MSh-786 commented Mar 8, 2026

implemented 8 of the zbb instructions.

@github-actions
Copy link

github-actions bot commented Mar 8, 2026

🔧 DE1-SoC Synthesis Report Summary Diff

📊 Fitter Summary (.fit.summary)

@@ -1,4 +1,4 @@
-Fitter Status : Successful - Sun Mar 22 02:17:43 2026
+Fitter Status : Successful - Sun Mar 22 16:24:54 2026
 Quartus Prime Version : 25.1std.0 Build 1129 10/21/2025 SC Lite Edition
 Revision Name : utoss-risc-v
 Top-level Entity Name : top

⏱️ Timing Analysis Summary (.sta.summary)

No changes detected


Comparing synthesis results from main branch vs. this PR

@TheDeepestSpace TheDeepestSpace linked an issue Mar 8, 2026 that may be closed by this pull request
3 tasks
@TheDeepestSpace
Copy link
Member

Hey @MSh-786 we just merged #190 which adds b_alu_control_t that you should be able to use for zbb module instead of zbb_control, please check it out and add Zbb's instructions to the enum

@MSh-786
Copy link
Contributor Author

MSh-786 commented Mar 22, 2026

Hey @TheDeepestSpace I fixed up the zbb instructions and decoder

@TheDeepestSpace
Copy link
Member

Hey, thanks! Lemme see what these merge conflicts are about

@TheDeepestSpace TheDeepestSpace linked an issue Mar 22, 2026 that may be closed by this pull request
case (funct3)
3'b100:
case(rs2)
5'b00000: b_alu_control = B_ALU_CTRL__ZEXTH;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to check that rs2 is zero for zext.h?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't technically need to, I added it to be more compliant with the riscv encoding

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement logic + min/max + sign ext parts of Zbb Implement basic decoding for B extension

2 participants