os-fpga / Raptor

Raptor end-to-end FPGA Compiler and GUI
Other
65 stars 22 forks source link

Initial LiteX build backend available. #105

Closed enjoy-digital closed 2 years ago

enjoy-digital commented 2 years ago

Hello,

just for info, the initial Raptor build backend for LiteX is available at https://github.com/enjoy-digital/litex/tree/master/litex/build/osfpga.

Two designs have been created:

test_soc.py can be useful to easily generate test designs for Raptor:

alain-rs commented 2 years ago

@avinasht-rs FYI

alain-rs commented 2 years ago

@enjoy-digital , I think this is just a bad cut and paste from one of the examples, this macro setting is unnecessary: https://github.com/enjoy-digital/litex/blob/eeed11edea24a2b654042101de29e0fdf4f55f30/litex/build/osfpga/osfpga.py#L38

A better example is this one:

https://github.com/RapidSilicon/Raptor/blob/main/tests/Testcases/aes_decrypt_fpga/aes_decrypt.tcl The 2 target architectures supported by Raptor at this point are GEMINI and MPW1 The device size setting is to force OpenFPGA to use the fixed size layout (As opposed to the dynamic sized layout that VPR would use by default).

enjoy-digital commented 2 years ago

Thanks @alain-rs, this is updated with https://github.com/enjoy-digital/litex/commit/8ccfc96b1a11c02e512045336d87dfc9b02e762f.

@avinasht-rs: I did my test with: ./test_soc.py --toolchain=raptor --device=gemini --cpu-type=serv --build (haven't run the full build since it seems to be long, but it does not seems to be crashing).