EPFL-LAP / dynamatic

DHLS (Dynamic High-Level Synthesis) compiler based on MLIR
Other
65 stars 19 forks source link

[VHDL] Array access out-of-bound during simulation #130

Open Jiahui17 opened 3 months ago

Jiahui17 commented 3 months ago

This issue might be a duplicate of #119.

Benchmark: symm_float.c

Script to reproduce the error:

dynamatic> set-dynamatic-path ./dynamatic;     set-src ./dynamatic/integration-test/symm_float/symm_float.c;     set-clock-period 4;     compile --simple-buffers;     write-hdl --hdl vhdl;     simulate;     # synthesize;     exit

Issue:

# ** Fatal: (vsim-3734) Index value 900 is out of range 0 to 899.
#    Time: 1442 ns  Iteration: 1  Process: /symm_float_wrapper_tb/mem_inst_C/port0_to_mem File: /home/jxu/Repositories/dhls-utils/dynamatic/integration-test/symm_float/out/sim/VHDL_SRC/two_port_RAM.vhd