From 937428b1fc3953bdc1726f292f4cb9bb163bf5cd Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Sat, 3 Dec 2022 18:09:44 -0500 Subject: [PATCH] cpu/rocket: add "octo" (512 bit wide) "full" variants Boards such as the Xilinx VC707, STLV7325, etc. offer support for dual-rank memory, which results in a 512-bit wide native LiteDRAM port. These additional "8x wide" (or "octo") variants support that width directly, without the need for additional data width conversion that whould have to be implemented on the LiteX side of the SoC. Suggested-by: Icenowy Zheng Signed-off-by: Gabriel Somlo --- litex/soc/cores/cpu/rocket/core.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/litex/soc/cores/cpu/rocket/core.py b/litex/soc/cores/cpu/rocket/core.py index 7ae225960..646207e97 100644 --- a/litex/soc/cores/cpu/rocket/core.py +++ b/litex/soc/cores/cpu/rocket/core.py @@ -55,6 +55,9 @@ CPU_VARIANTS = { "full4d": "freechips.rocketchip.system.LitexFull4DConfig", "fullq": "freechips.rocketchip.system.LitexFullQConfig", "full4q": "freechips.rocketchip.system.LitexFull4QConfig", + "fullo": "freechips.rocketchip.system.LitexFullOConfig", + "full4o": "freechips.rocketchip.system.LitexFull4OConfig", + "full8o": "freechips.rocketchip.system.LitexFull8OConfig", } # GCC Flags----------------------------------------------------------------------------------------- @@ -72,6 +75,9 @@ GCC_FLAGS = { "full4d": "-march=rv64imafdc -mabi=lp64 ", "fullq": "-march=rv64imafdc -mabi=lp64 ", "full4q": "-march=rv64imafdc -mabi=lp64 ", + "fullo": "-march=rv64imafdc -mabi=lp64 ", + "full4o": "-march=rv64imafdc -mabi=lp64 ", + "full8o": "-march=rv64imafdc -mabi=lp64 ", } # CPU Size Params ---------------------------------------------------------------------------------- @@ -90,6 +96,9 @@ CPU_SIZE_PARAMS = { "full4d": ( 128, 64, 4), "fullq": ( 256, 64, 1), "full4q": ( 256, 64, 4), + "fullo": ( 512, 64, 1), + "full4o": ( 512, 64, 4), + "full8o": ( 512, 64, 8), } # Rocket ------------------------------------------------------------------------------------------