Forum Discussion

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

loading two fpga devices from the same flash

Hi,

How can I load two fpga devices with different contents from the same epcs flash.

Pita

3 Replies

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

    Loading two FPGA's with the same configuration is relatively simple and documented in the device handbook.

    I am not aware of any automated way if the contents are different:

    Here's a possible solutions however:

    First FPGA loads in Active serial mode, then a small Micro or NIOS processor built into that FPGA reads and programs the second FPGA in a Passive serial fashion.

    This method to read the EPCS would be the same the NIOS II core uses to have FPGA and Source code in the same EPCS flash device. If you are using NIOS, Altera provides the core to access this the primary EPCS for it's code space:

    http://www.altera.com/support/kdb/solutions/rd03032006_690.html

    To program the secondary FPGA, could be just bit banged, from the first.

    If you have an external CPU with flash present in the system, It's probably easiest to just have it program both FPGA's in passive serial mode (Modified SPI). Of course this only works if the CPU doesn't require the FPGA to boot.

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

    Yes,

    I have CPLD on the same board. So this solution which you suggested with external cpu can be applied.

    Thanx,

    Pita