Forum Discussion
Hi,
Yes,
We can have simple .do script to set the simulation environment(macro enabled).
To launch simulation from Quartus.
Assignments->settings->EDA tool Settings->simulation->tool name Modelsim-Altera ->select the option "script to compile test bench" -> input the .do with the macro which you want enable.
To run the simulation from Quartus
Tools->Run Simulation Tools->RTL Simulations.
Refer image for more information.
I have used about code with simple .do file .
------------.do---------------
vlog +define+behavioral -work work C:/......./macro/and_op.v
------------------------------
Which will launch Modelsim and run simulation for the enabled macro.
Let me know if this has helped resolve the issue you are facing or if you need any further assistance.
Best Regards,
Anand Raj Shankar
(This message was posted on behalf of Intel Corporation)