litex-hub / linux-on-litex-rocket

Run 64-bit Linux on LiteX + RocketChip
BSD 2-Clause "Simplified" License
189 stars 20 forks source link

Documentation of the varying rocket cpu-variants #26

Closed matsbror closed 1 year ago

matsbror commented 1 year ago

Where can I find information about the different cpu-variants? E.g. linux4, full, linuxd?

gsomlo commented 1 year ago

On Mon, Dec 05, 2022 at 04:10:03AM -0800, Mats Brorsson wrote:

Where can I find information about the different cpu-variants? E.g. linux4, full, linuxd?

Look at https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/cpu/rocket/core.py#L45-L102

Also, the pre-built verilog is maintained in https://github.com/litex-hub/pythondata-cpu-rocket. See https://github.com/litex-hub/pythondata-cpu-rocket/blob/master/pythondata_cpu_rocket/verilog/update.sh for how the pre-built variants are configured and built.

gsomlo commented 1 year ago

On Mon, Dec 05, 2022 at 04:10:03AM -0800, Mats Brorsson wrote:

Where can I find information about the different cpu-variants? E.g. linux4, full, linuxd?

The convention is [standard|linux|full][xCores][xMemBusWidth]

There's an optional number of cores (e.g., 2, 4, 8).

Finally, there's [D|Q|O] for double (2x64 = 128), Quad (256), or "Octo" (512) width of the cached-memory AXI interface between Rocket and LiteX's LiteDRAM data port.

LiteX should warn you if your memory bus width is different from LiteDRAM, which requires additional up- or down-conversion. Instead, pick the appropriate variant to exactly match your board's LiteDRAM port width.