Forum Discussion

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

SOPC interface help

Good Afternoon

Sorry but I am new to NIOS and SOPC builder. But I am trying to create a two port memory where one port is connected to the NIOS using Avalon-mm so I can read and write to the memory by the CPU, but the second port is exposed outside of SOPC block so I can access it outside of the SOPC package without the Avalon interface? A generic way to ask is "are there a way to expose ports to the external world in SOPC other than create your own device?"

Thanks for your help.

Victor

3 Replies

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

    There is a type of interface called "conduit_end" in the component editor. You must add an interface of this type and to associate it with the remaining port signals of your memory as "export" signals, in top level entity generated by sopc builder you will see theese signals.

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

    Thank you for the info. In my case, if I want to add two port memory in to SOPC builder, the block shows up as S1 and S2 interface. If I want S2 to go out side of SOPC, how do I add export to that port?

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

    Change type of S2 from "avalon-slave" to "conduit_end" and change its signals to "export", they will appear in top level entity generated by SOPC builder.