Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17268 Discussions

SOPC Simulation with ModelSim Altera vs. ModelSim PE

Altera_Forum
Honored Contributor II
1,889 Views

I have generated an SOPC system and would like to simulate using ModelSim PE rather than ModelSim Altera but am running into some issues (Note: I have both versions installed and they are both properly licensed...): 

 

 

 

1. Under Tools -> Options -> HDL Simulator Option, I only See ModelSim Altera. What if I want to use ModelSim PE? Why is this option not available? 

 

2. In Quartus I have selected ModelSim PE as my simulator under options -> EDA tool. I thought that this would have made the PE version available once I launch SOPC. However this is not the case. 

 

3. If I open up ModelSim Altera and run a simulation for a SOPC-generated system, the setup_sim.do file executes fine. However, if I follow the same process with ModelSim PE, I get an error when executing setup_sim.do at line 39. Why does PE not understand this file? 

 

Has anyone run into this issue before?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
832 Views

Bump... 

 

I understand that generating custom scripts will work but, you would think that the SOPC builder simulation flow would work for more than just the Altera version of ModelSim.
0 Kudos
Altera_Forum
Honored Contributor II
832 Views

what is the specific error when you run setup_sim.do? and what's on line 39?

0 Kudos
Altera_Forum
Honored Contributor II
832 Views

do setup_sim.do# c:/altera/91/quartus//sopc_builder# c:/altera/91/quartus//bin/perl# Sopc_Builder Directory: c:/altera/91/quartus//sopc_builder # ** Error: list element in braces followed by ";" instead of space# Error in macro ./setup_sim.do line 38# list element in braces followed by ";" instead of space# while executing# "alias c "echo {Regenerating memory contents.# (This may take a moment)...}; restart -f; exec $sopc_perl/bin/perl -I $sopc/bin/perl_lib -I $sopc/bin $s..." 

 

--End printout from console... 

 

Now, if I run this script from the same directory from ModelSim Altera, there is no error: 

 

do setup_sim.do# c:/altera/91/quartus//sopc_builder# c:/altera/91/quartus//bin/perl# Sopc_Builder Directory: c:/altera/91/quartus//sopc_builder # @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ # @@ # @@ setup_sim.do # @@ # @@ Defined aliases: # @@ # @@ s -- Load all design (HDL) files. # @@ re-vlog/re-vcom and re-vsim the design. # @@ # @@ c -- Re-compile memory contents. # @@ Builds C- and assembly-language programs # @@ (and associated simulation data-files # @@ such as UART simulation strings) for # @@ refreshing memory contents. # @@ Does NOT re-generate hardware (HDL) files # @@ ONLY WORKS WITH LEGACY SDK (Not the Nios IDE) # @@ # @@ w -- Sets-up waveforms for this design # @@ Each SOPC-Builder component may have # @@ signals 'marked' for display during # @@ simulation. This command opens a wave- # @@ window containing all such signals. # @@ # @@ l -- Sets-up list waveforms for this design # @@ Each SOPC-Builder component may have # @@ signals 'marked' for listing during # @@ simulation. This command opens a list- # @@ window containing all such signals. # @@ # @@ h -- print this message # @@ # @@  

 

-- End console output-- 

 

Also, I do not see ModelSim PE as an option under simulator option in SOPC builder
0 Kudos
Altera_Forum
Honored Contributor II
832 Views

I resolved the issue after in updating from 6.5 to 6.5c. Im really not sure what the difference was but, all of the testbenches and scripts run just fine now.

0 Kudos
Reply