Forum Discussion

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

Dual port shared memory

Hi!

I am working on a project which includes NIOS as the main host processor and it has other parts designed in verilog (a transceiver, a control unit). In the project a dual port memory is to be shared by NIOS and the control unit. I mean both of them can write data to the memory, with NIOS having the higher priority.

I have configured NIOS using SOPC builder, however I am confused about how can I add the dual port memory so that its one end communicates with NIOS and the other end communicates with the control unit designed in verilog. Can somebody help me with this. Thanks

11 Replies

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

    Hi Guys,

    What you've got up there has really helped me. But i have one question?

    How do you then control this FIFO in Nios? As in, i've made one of these, what c-code do you youse to trigger a read and and accept the data?