Forum Discussion

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

EPCS controller and multiple CPUs

Hello everybody!

I´m started yet with my first NIOS project. Therefore I need two NIOS processors which have access to an flash. Is it generally possible to connect two NIOS with one ECPS controller? My task is to load the programm codes for both NIOS from the flash.

Best regards.

1 Reply

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

    You can do this, but you must be very careful about sharing the component between the 2 CPUs. If they both try to access the EPCS at the same time you'll get ugly results. You'd have to add a hardware mutex to control access to the chip, and probably modify the bootloader to use it.

    The default EPCS bootloader only supports one software image, placed right after the FPGA image. You'd have to modify it also to load another software image.

    Another solution would be to have only one CPU connected to the flash, and have it load the software for the second CPU.