terasic_de10nano: Add Cyclone V HPS (cyclonev_hps) CPU support - #746
Merged
Conversation
This was referenced Jul 6, 2026
Merged
Allow building the SoC with --cpu-type=cyclonev_hps: the HPS becomes the SoC's CPU through the H2F LW bridge (CSRs at 0xff20_0000), the LiteX UART is disabled (console is on HPS UART0, running Linux on MiSTer) and sram/rom regions are mapped to HPS DDR3 (Linker-only, enables BIOS compilation as on Zynq targets). The MiSTer SDRAM (when enabled) is made visible to the ARM at 0xc000_0000 through the H2F bridge; the bridge can also be enabled explicitly with --with-h2f-bridge.
…ions. Document how to build the cyclonev_hps SoC, load the .rbf on a MiSTer and do a first CSRs access from the HPS with devmem.
Expose the first 256MB of the HPS DDR3 on the LiteX bus at 0xd000_0000 through F2SDRAM Port 1 (64-bit Avalon-MM) and the new Wishbone2AvalonMM bridge. Non-coherent with the ARM caches; useful for Fabric DMAs and as a F2SDRAM smoke test from the ARM through the H2F bridge (ex reading 0xd000_0000 from the HPS returns the DDR3 content at 0x0000_0000).
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.
Companion PR to enjoy-digital/litex#2496 (Intel Cyclone V HPS hardcore CPU support).
Allow building the DE10-Nano/MiSTer SoC with
--cpu-type=cyclonev_hps:0xff20_0000).0xc000_0000through the H2F bridge (also exposed via--with-h2f-bridge).--with-f2h-sdram: first 256MB of HPS DDR3 exposed on the LiteX bus at0xd000_0000through F2SDRAM Port 1 (64-bit Avalon-MM) and the newWishbone2AvalonMMbridge — useful for Fabric DMAs and as a F2SDRAM smoke test from the ARM (reading0xd000_0000from the HPS returns the DDR3 content at0x0000_0000).The softcore path is unchanged.
Tested: full Quartus 23.1 builds (with and without
--with-f2h-sdram): 0 errors,.rbfproduced, HPS bridge/F2SDRAM atoms placed/routed; BIOS compiled witharm-none-eabi-gcc. Hardware bring-up on a MiSTer is the next step: