calyxir / calyx

Intermediate Language (IL) for Hardware Accelerator Generators
https://calyxir.org
MIT License
450 stars 44 forks source link

Introduce verilog -> cocotb simulation `fud2` path #1997

Open nathanielnrn opened 1 month ago

nathanielnrn commented 1 month ago

Introduces a path accepting .v files, presumably axi-wrapped via a fud2 foo.futil --through axi-wrapped and outputting the final contents of AXI rams simulated via cocotb.

Invocation currently has to be manually specified due to the behavior of guess_state

An invocation looks like fud2 <path to axi wrapped verilog> --from verilog-noverify --to cocotb-axi --set sim.data=<path to .data/json file>

This PR also introduces some cocotb python runners that largely looks like the xilinx cocotb harness. Those will hopefully be removed once we get the wrapper to properly interface with XRT.