Altera_Forum
Honored Contributor
14 years agoAssembly + Nios + two cores
hi, this is sundaram from University of Waterloo. I have a quick question. I have a design where there are two cores and they both have executable sections on the ddr2 sdram which, is connected through a pipeline bridge. what I'm trying to do is very simple.
The code for the first goes something like this :#include "stdio.h"
int main()
{
__asm__ ("movhi r1,%hi(0x08000020);ori r1,r1,%lo(0x08000020);jmp r1");
return 0;
} and the code for the second core goes something like this: #include "stdio.h"
int main()
{
printf("I hope it works!");
return 0;
}
The ram is divided like the first half for the first cpu and the second half for the second cpu. In fact 0x08000020 is the entry section for the second core. So, I downloaded both the programs to their respective locations and executed the first program. However, I didn't get any output. If someone knows the reason to this, please let me know immediately. Thanks!