B extension decoder created with zba and preliminary zbb support#190
Draft
Parzival129 wants to merge 4 commits intomainfrom
Draft
B extension decoder created with zba and preliminary zbb support#190Parzival129 wants to merge 4 commits intomainfrom
Parzival129 wants to merge 4 commits intomainfrom
Conversation
🔧 DE1-SoC Synthesis Report Summary Diff📊 Fitter Summary (.fit.summary)@@ -1,4 +1,4 @@
-Fitter Status : Successful - Sun Feb 22 04:04:10 2026
+Fitter Status : Successful - Fri Feb 27 20:51:05 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 |
3 tasks
Comment on lines
+67
to
+75
| typedef enum logic [3:0] | ||
| { B_ALU_CTRL__NONE = 4'b0000 | ||
| , B_ALU_CTRL__SH1ADD = 4'b0001 | ||
| , B_ALU_CTRL__SH2ADD = 4'b0010 | ||
| , B_ALU_CTRL__SH3ADD = 4'b0011 | ||
| , B_ALU_CTRL__ANDN = 4'b0100 | ||
| , B_ALU_CTRL__ORN = 4'b0101 | ||
| , B_ALU_CTRL__XNOR = 4'b0110 | ||
| } b_alu_control_t; |
Member
| , .funct7(funct7) | ||
| , .opcode(opcode) | ||
| , .rd(rd) | ||
| , .b_alu_control(state) // this should be updated accordingly in the future |
Member
There was a problem hiding this comment.
can add a dummy b_alu_control variable for now
| , input [6:0] funct7 | ||
| , input [6:0] opcode | ||
| , input [4:0] rd | ||
| , output reg [3:0] b_alu_control |
Member
There was a problem hiding this comment.
use the enum you created in types here
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created initial version of b alu decoder that uses enum types. Currently supports zba implementation and the planned implementation of zbb, however zbs is still to be implemented.