Forum Discussion

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

How nios can read and write External FPGAs

Hi,

In my project am using 4 FPGAs

1) First FPGA am using Nios II

2) I want to access/ Control Other FPGA registers

so i have created a custom protocol in slave and master side ir Nios side am planing to do it in C code?

can u tell some ideas of c application how we can start???

2 Replies

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

    Why do you want to use a custom protocol. Why dont you model the interface as MASTER - SLAVE SPI interface and do a write cycle with address of register and read cycle with teh value of the register.

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

    User want to access via UART and access all other FPGAs thats why SPI is not using

    --- Quote Start ---

    Why do you want to use a custom protocol. Why dont you model the interface as MASTER - SLAVE SPI interface and do a write cycle with address of register and read cycle with teh value of the register.

    --- Quote End ---