If you have a multi-CPU configuration in the FPGA with Nios® II etc., you may use Mailbox etc. to communicate between CPUs, but there is a method other than using Qsys's Altera Avalon Mailbox (Simple) mosquito?
Category: Nios® II
Tools: Quartus® Prime / Quartus® II
device:-
There is a way to use Dualport-RAM as a way to achieve a similar function, but there is a difference between polling and interrupts as shown below.
Also, Mailbox can only store 32-bit data, so you can't pass large amounts of information.
・Mailboxes
- Can be used for message (32bit data) exchange between multiple CPUs
- Issue an interrupt when receiving (Polling is also possible)
- About Status register (0x2) Sender can only set (write) and receiver can only clear (read)
- message is limited to 32bit
Reference information
https://www.altera.com/en_US/pdfs/literature/ug/ug_embedded_ip.pdf
(Search by keyword in Mailbox.)
・Dualport-RAM
- Can be used for data exchange between multiple CPUs
- You have to go get the value yourself on Nios® II (polling only)
- Read-Duaring-Write is Old Data or Don't Care (M20K)
- Set which address is used for what purpose by user specifications (no stipulation on IP)
Reference information
https://www.altera.com/en_US/pdfs/literature/ug/ug_ram_rom.pdf
Experienced FAE
Free consultation is available.
From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.