Forum Discussion
Hi ShengN_altera ,
Thanks for the suggestion, I find it a bit cumbersome to add an extra file in a folder that is automatically generated and cleaned by Quartus. But based on your insights, I found an alternative. Perhaps it is not yet the best solution, but it avoids creating an extra file.
1) First, set an environment variable as follows:
export FLI_LIB='\"cocotb_init [exec cocotb-config --lib-name-path fli questa]\"'2) Then, set the simulation option as you suggested, `questa=-foreign $1 `
3) The first simulation attempt will fail, but then one restarts with the following argument parameter:
do user2mon_run_msim_rtl_vhdl.do {$::env(FLI_LIB)}4) Then it works
It is not ideal, because it is hard to make it work with Continuous integration.
Based on this feedback, can you imagine a way that it could already work without restarting the simulation?
export as env variable is a way as well.
If you run from nativelink, it'll definitely fail. If the do script s2p_bram_run_msim_rtl_vhdl.do had been generated, not need to run from the nativelink just straight run the do script will do unless there's changes to the path in the do script.