Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17257 Discussions

Multiprocessor ModelSim simulation problems

Altera_Forum
Honored Contributor II
1,043 Views

I am trying to simulate a two-processor system using the steps I was given below. One of the processors however does not carry out any instructions when the simulation is run. My system contains two cpus, two timers, shared on-chip memory, jtag uart, mutex, and an avalon to external bus bridge.  

 

By using the wave window in ModelSim, I can see instruction addresses being fetched, and the readdatavalid signal goes high, but there appears to be incorrect data on the line. The system should eventually fetch custom instructions, but this never happens. 

 

My second processor in the system is exactly the same, has all the same connections, runs the same software, and the code executes correctly. Is there anything else I need to do to make the multiprocessor simulation run correctly? 

 

Thanks 

 

 

 

 

 

1 Create Nios II processor projects for both cpu_0 and cpu_1. 

2 Build these two projects in Nios II IDE. 

3 Launch ModelSim from cpu_0 project or cpu_1 project. 

4 In ModelSim, s, w, run …  

 

If the processors share the instruction/data memory, assume you build cpu_0 project, and generate the memory initialization files firstly, when you build cpu_1 project, Nios II IDE will overwrites the memory initialization files, and breaks the initialization content of cpu_0. So the steps should be changed to 

 

1 Create Nios II processor projects for both cpu_0 and cpu_1. 

2 Build cpu_0 project in Nios II IDE. 

3 Backup the <SOPC_SYSTEM_NAME>_sim/ <MEMORY_NAME>.dat file. For example, rename it to <MEMORY_NAME>.dat.cpu_0 

4 Build cpu_1 project in Nios II IDE. Get new <MEMORY_NAME>.dat 

5 Copy the content of <MEMORY_NAME>.dat.cpu_0 to <MEMORY_NAME>.dat 

6 Launch ModelSim from cpu_0 project or cpu_1 project. 

7 In ModelSim, s, w, run …  

Error Message:One processor does not run during multiprocessor simulation
0 Kudos
0 Replies
Reply