Forum Discussion
MAX10 ADC - getting it to simulate in Modelsim
Thanks for the reply.
I am using Quartus Prime 18.1.0 SJ Lite Edition and ModelSim - Starter Edition 10.5b
I attach screenshots of messages from the simulation.
I expect the key error is in loading the simulation:
“Component instance “modular_adc_0 : On_Chip_ADC_modular_adc_0” is not bound.
I no longer have Quartus 17 on my machine.
Back in the day we had trouble with Quartus 17 that was only resolved when an FAE came and sat with me.
Problems included, Quartus 17 IP generator put the ip files in the wrong folders, and Altera needing to give me a library "sim_lib for max10 ADC Quartus 17.zip" which needed adding to the ”quartus\eda\sim_lib" folder.
Other notes I have from back then say not to run ModelSim from within Quartus and to start the simulation using “vsim -L altera_mf_ver -L fiftyfivenm_ver -L lpm work.testbench” – I tried this and it doesn’t solve the problem.
I was hoping that by using Quartus 18 I could make a clearn start and avoid these issues.
I set QUARTUS_INSTALL_DIR and ran the tcl as you suggested. Screenshot attached – no errors, but nothing to say anything was compiled - I don’t know if that means it worked or not.
I tried rebuilding with verilog outputs. Attached.
I am apparently missing a step on how to tell Modelsim about the ADC,
Hi RobGS,
Thank you for the update, and apologies for the delayed response.
Based on the message:
“Component instance “modular_adc_0 : On_Chip_ADC_modular_adc_0” is not bound.
it appears that the ADC simulation model was not successfully compiled and mapped during elaboration. As a result, the simulator is unable to bind the ADC instance to its corresponding simulation library.
From the screenshot provided, it looks like msim_setup.tcl was sourced successfully. However, sourcing the script alone only defines the simulation environment and helper procedures. The actual compilation steps are performed by executing the commands generated within the script. You may need to proceed with the commands such as dev_com, com and etc.
For references, please refer to the following documentation for additional details: https://docs.altera.com/r/docs/683870/25.3.1/quartus-prime-pro-edition-user-guide-third-party-simulation/questasim-simulation-setup-script-example
In particular, Section 3.5, "Sourcing QuestaSim Simulator Setup Scripts" explains the additional commands required after sourcing the setup script.
Please let us know the results. If the issue persists, we will be happy to assist further.
Thank you!
Regards,
ZiYingE_Altera
- ZiYingE_Altera19 days ago
Occasional Contributor
Hi RobGS,
Just following up on my previous message whether you had a chance to review it, or if my earlier reply may have been missed.
If you need any help, please feel free to let me know. I will be happy to assist further.
Regards,
ZiYingE_Altera- RobGS18 days ago
New Contributor
Thanks for your help on this.
Your response looks like it might help me, but it will be a while before I can get back to this.
For the moment we have made delivery to our customer without simulation, and are waiting on the customer’s response.
- ZiYingE_Altera13 days ago
Occasional Contributor
Hi RobGS,
Thank you for the update.
No worries. Whenever you have an opportunity to try the suggested steps, please let me know how it goes, and I'll be happy to assist further.
Regards,
ZiYingE_Altera