Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
747 Views

How can I add two Nios in FPGA?

I have a stratix board,but when I add two Nios in my project and compiled it, I found that the system.h generated by Nios IDE can't involved the other CPU and its peripherals. 

How can I do? Is there any document related to theme? 

 

thank u!
0 Kudos
5 Replies
Highlighted
Valued Contributor III
3 Views

You tell the syslib for your code to run on one Nios II or another, assuming you just have more than one processor in your SOPC Builder design. You should be able to choose the processor from the System Library Properties page in the IDE. 

 

Cheers, 

 

- slacker
0 Kudos
Highlighted
Valued Contributor III
3 Views

Which version of IDE you use?

0 Kudos
Highlighted
Valued Contributor III
3 Views

hello slacker, 

 

Can the Nios 1.0 provide the alternative of more cpu? or Can I select which section of the linker script to determined which cpu to use? the .ptf generated by sopc builder have included all these core added. 

 

give me more details please!
0 Kudos
Highlighted
Valued Contributor III
3 Views

Nios II has supported multiple CPUs since the first release. 

 

Each CPU has a system library associated with it, so the system.h and autogenerated linker script apply only to that CPU. 

 

You need to create system libraries (and application projects) for all the CPUs in your system. The appropriate memory map will be chosen depending on which memories are visible to the CPU. 

 

You also need to ensure that the text and data sections of the different CPUs are in different memories, and that they don't share the same reset and exception addresses.
0 Kudos
Highlighted
Valued Contributor III
3 Views

I know,thank all of u!

0 Kudos