Forum Discussion

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

configuring 2 FPGAs in PS mode

I have 2 FPGAs Cyclone IV in my board design and I want to be able to reconfigure them by the CPU separately, means reconfigure one while the other is still in user mode . Which signals should I separate ,does nCONFIG is enough or should I separate also the nCE signal? it is claer that I 'm using the PS mode.

4 Replies

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

    --- Quote Start ---

    I want to be able to reconfigure them by the CPU separately

    --- Quote End ---

    You need to treat them as completely separate devices, eg., all the PS control signals need to be separated.

    If you need to have the devices configure in two-device PS mode at some times, and then in single device PS mode at other times, you can use tri-state buffers or bus-switches on the PS signals, and use the CPU to select the appropriate operating mode.

    Feel free to post a diagram showing what you are trying to do, and forum members will take a look.

    Cheers,

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

    --- Quote Start ---

    You need to treat them as completely separate devices, eg., all the PS control signals need to be separated.

    If you need to have the devices configure in two-device PS mode at some times, and then in single device PS mode at other times, you can use tri-state buffers or bus-switches on the PS signals, and use the CPU to select the appropriate operating mode.

    Feel free to post a diagram showing what you are trying to do, and forum members will take a look.

    Cheers,

    Dave

    --- Quote End ---

    Thanks Dave,

    it is not clear for me why should I separate the DATA and DCLK signals? and even the nSTATUS and Config_done , as they are open drain according to my knowledge can stay connected together . Can you explain more broadly your recommendation.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    it is not clear for me why should I separate the DATA and DCLK signals? and even the nSTATUS and Config_done , as they are open drain according to my knowledge can stay connected together . Can you explain more broadly your recommendation.

    --- Quote End ---

    Ok.

    1. DATA could be a common signal

    2. DCLK could be a common signal, BUT you should buffer it, so that each FPGA gets a nice clean clock signal. Do not daisy chain the clock (transmission line reflections can occur, depending on layout)

    3. nCONFIG should not be common, since then you cannot independently clear the configuration of the devices

    4. nSTATUS should not be common, since when you pulse nCONFIG on one device, nSTATUS for that device will assert, and place the other FPGA in an error state

    5. CONF_DONE should not be common, as holding this signal low can be used to delay the FPGA entering USER mode. When you pulse nCONFIG on one device, CONF_DONE for that device will assert, and its probably undefined as to what the other device in USER mode will do (bad things most likely!)

    Ultimately you will want to look at your PCB layout. If the two FPGAs are separated, and you have enough I/O pins on your PS master, then having separate interfaces may make the PCB layout simpler.

    Cheers,

    Dave