Open
Conversation
Rename src/Instruction_Decode/RegisterFile.v to RegisterFile.sv and update references across the project. Updated Quartus QSF to treat RegisterFile.sv as a SYSTEMVERILOG_FILE (also fixed pkg_control_fsm extension to .svh), adjusted src/Instruction_Decode/Makefile SRCS and test target to use the .sv file, and modified testInstructDecode.tcl to svlog the SystemVerilog file. No functional changes to the module implemented—just tooling/build updates for SystemVerilog support.
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.
closes #213
This pull request refactors the codebase to introduce a new typedef,
reg_t, for register address fields (5 bits wide), and updates all relevant modules and testbenches to use this new type instead of raw[4:0]logic vectors. This improves code readability, type safety, and consistency across the project.Type definition and usage standardization:
reg_taslogic [4:0]insrc/types.svh, and included this type definition where needed. [1] [2] [3] [4]Module and interface updates:
rd,rs1,rs2,Addr1,Addr2,Addr3) to usereg_tinstead of[4:0]. This includes changes inInstruction_Decode.sv,RegisterFile.v,Logger.sv,decoder.sv,utoss_riscv.sv, and the testbenchrf_tb.sv. [1] [2] [3] [4] [5] [6]