Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Problem about multi processor

Hi:

I have a problem about Multi processor in niosII,I use Quartus II Version 8.1,my connections in SOPC Builder is as follows:

does anyone know what mistakes I made?

Thank you

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I used cpu_1 to operate led_green,but it the led_green does't seem to be controlled,instead,the led_red,which is connected to cpu_2,seems to be controlled by cpu_1,I don's know why.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I don't see anything in your SOPC system that would explain this... Check that your two PIO are indeed connected to the correct LEDs, that the two CPUs are using different parts of the memory for their software, and that you are downloading the code to the correct CPU.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    for cpu_1:

    Reset Vector: Memory sdram_0 offset 0x0

    Exception Vector: Memory sdram_0 offset 0x20

    for cpu_2:

    Reset Vector: Memory sdram_0 offset 0x100000

    Exception Vector: Memory sdram_0 offset 0x100020

    in addtions,should the jtag_uart connect to cpu_1 or cpu_2?

    Thank you!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It looks ok.

    You can only connect the jtag uart to one CPU AFAIK. You can choose anyone you like, but of course the other one will not be able to write anything to the console.

    If you have a serial interface, you could connect a UART to the second cpu, and that way have a console access on both CPUs.