rapidstream-org / rapidstream-tapa

RapidStream TAPA compiles task-parallel HLS program into high-frequency FPGA accelerators.
https://tapa.rtfd.io
MIT License
155 stars 32 forks source link

Tapa Fast Co-sim Unable to open ROM data verilog file #139

Open abdulwadood97 opened 1 year ago

abdulwadood97 commented 1 year ago

I have defined a global const array, which gets stored in the ROM. HW_EMU for the design works fine. Somehow the tapa fast cosim gives the warning below and the simulation hangs at "run_all" message. "WARNING: File ./load_load_Pipeline_LOAD_LOOP_NDelta_BitMap_ROM_AUTO_1R.dat referenced on /tmp/tapa-fast-cosim.7wGFW0/output/tapa_fast_cosim_661243/ip_repo/haoda_xrtl_data_decoding_1_0/src/load_load_Pipeline_LOAD_LOOP_NDelta_BitMap_ROM_AUTO_1R.v at line 23 cannot be opened for reading. Please ensure that this file is available in the current working directory."

The file exists in the directory and read write permission is enabled, That file contains this part of code to read the memory first and some other logic " initial begin $readmemh("./load_load_Pipeline_LOAD_LOOP_NDelta_BitMap_ROM_AUTO_1R.dat", ram); end "