Cvwsoc 32bits#8
Merged
Merged
Conversation
Tested in verilator and QEMU for RV32 an RV64.
These fixes made it possible to simulate the SoC with AHBW=64 AND XLEN=32.
Using romfs instead of initrd makes rootfs mount and boot 30+ million cycles shorter. Ramfs will be added later.
Bugfix for bug found during romfs integration.
U-boot stub is added for emu/simulation targets that should not run u-boot. The Kernel is always loaded at 0x80400000 for 32 and 64 bit targets.
Missing cleanup.
- Changed peripheral wrappers to be configurable - Added USB OHCI 32-bit generated verilog - fixed constraints to work with flexible widths - Reworked top file not to have hardwired index numbers.
- Commenting hack for 32-bit case. Now readmemh is done for both XLEN=32 and XLEN=64 - Fixes on splitfile.sh. Split depends on target XLEN plus other params (not a hardcoded K). Remark: 32-bit bootrom compilation is missing.
- The builds were tested for different combinations of XLEN and AHBW. - Clock frequency for RV32 was increased to 55 MHz. It doesn't meet timing requirements but it seems to run ok. - Different FPGA build targets were added. All RV32 targets should run the same OpenSBI/U-boot/Linux but bootrom binaries need different treatment depending on AHBW. - Simulation assumes RV32=1 => AHBW=32, but that can be overridden.
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.
This PR brings: