FlooNoC icon indicating copy to clipboard operation
FlooNoC copied to clipboard

Vivado Simulation

Open pkushiwang opened this issue 1 year ago • 5 comments

I have generated file occamy_mesh_floo_noc.sv successfully and I want to make a Simulation in Vivado. File floo_narrow_wide_chimney.sv is a submodular of occamy_mesh_floo_noc.sv and it includes registers.svh、assertions.svh and assign.svh,but I can't find those files in project. 1 Would you please tell me how to find the missing file?Thank you !

pkushiwang avatar Apr 24 '24 14:04 pkushiwang

Those are header files of the common_cells and axi dependencies, that are automatically fetched by bender. For vivado you probably want to create a compilation script like this:

bender script vivado -t rtl -t test > compile.vivado.tcl

which will automatically set the correct include directories of the dependencies

fischeti avatar Apr 24 '24 14:04 fischeti

I have found header files in file Bender.yml. However hw/floo_rob_wrapper.sv still lacks axi_demux_id_counters.sv and hw/floo_rob.sv lacks tc_sram_impl. 1 2 3

pkushiwang avatar Apr 25 '24 04:04 pkushiwang

I am not quite sure what you mean with you found the header files in the Bender.yml. The include headers are part of the bender dependencies which define the include directory paths that need to be added to the compilation in their respective Bender.yml (see here for example). Bender will automatically handle this for you when you generate a compilation script as I showed before.

axi_demux_id_counters and tc_sram_impl are modules from the bender dependencies axi and tech_cells_generic, so they should be listed as well in the generated compilation script. Maybe you could check the output of the last command that I sent you to check that they are there.

Also, maybe it helps if you have a look at the Bender documentation to understand how dependencies are managed with bender.

fischeti avatar Apr 25 '24 07:04 fischeti

I have checked bender dependencies axi again and again, but still cannot find axi_demux_id_counters. Are you sure axi contains axi_demux_id_counters? Thank you. 1

pkushiwang avatar Apr 25 '24 13:04 pkushiwang

They are declared inside the axi_demux_simple (see here)

fischeti avatar Apr 25 '24 13:04 fischeti