FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6355 Discussions

Scripts from Quartus in Modelsim not using the latest files when compiling

PVanL
Novice
780 Views

I am using quit a while Modelsim (DE-64 2020.3), in which i change and add files to the examples generated by Quartus 20.2. So far successfully, in the sense, that Modelsim behaves as expected. In this particular case: PCIe example with ST Avalon.

For a few days however, Modelsim seems does no longer to recognize changes to files, and somehow keeps on using libraries of earlier compiles. The scrips as generated by Quartus are unchanged, in fact it seems, but not consequently, that the scripts are not well read. For instance, a script like in modelsim_files.tcl like:

 

lappend design_files "vlog $USER_DEFINED_VERILOG_COMPILE_OPTIONS $USER_DEFINED_COMPILE_OPTIONS {+incdir+[normalize_path "$QSYS_SIMDIR/../altera_pcie_a10_tbed_191/sim/"]} \"[normalize_path "$QSYS_SIMDIR/../altera_pcie_a10_tbed_191/sim/altpcietb_bfm_rp_gen2_x8.v"]\" -work altera_pcie_a10_tbed_191"  lappend design_files "vlog $USER_DEFINED_VERILOG_COMPILE_OPTIONS $USER_DEFINED_COMPILE_OPTIONS {+incdir+[normalize_path "$QSYS_SIMDIR/../altera_pcie_a10_tbed_191/sim/"]} \"[normalize_path "$QSYS_SIMDIR/../altera_pcie_a10_tbed_191/sim/altpcietb_bfm_rp_gen2_x8_01.v"]\" -work altera_pcie_a10_tbed_191" 

 

 may still rever to a previous version altpcietb_bfm_rp_gen2_x8.v or an earlier version of altpcietb_bfm_rp_gen2_x8_01.v. However, if i insert a syntax error, it does see the syntax error and generates an error. If the modified code is syntaxtly correct, it does not see the new version, and reuses an earlier version of the library.

Any idea what is happening here?

regards,
Pieter

0 Kudos
4 Replies
RichardTanSY_Intel
732 Views

Could you try to clean and rebuild the project? See if it helps. 

Try to install the latest Quartus 20.3 and see if the problem persists. 

0 Kudos
Chris2000
Novice
708 Views

I'm having the same problem with 20.3. 

Project -> Clean Project did not help.

\sim\mentor\common\modelsim_files.tcl does not get updated when I generate HDL or TB in Platform designer or compile the FPGA or Generate Testbench system.

What action causes this file to be created/updated?

0 Kudos
RichardTanSY_Intel
635 Views

Sorry for idling for sometime. Do you able to solve the issue? 

Have you try go to Tools > Generate Simulator Setup Script for IP in the Quartus Pro? It should generate the modelsim _files.tcl for the IPs used. 

0 Kudos
RichardTanSY_Intel
609 Views

Customer able to solve the problem and the problem is for some reason system created a library 'work' where the newly compiled version of altpcietb_bfm_rp_gen2_x8.v was, but in executing, it used /libraries/work, where a previous compiled version was.

0 Kudos
Reply