Forum Discussion

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

DE2-115 and SRAM using SOPC (Qsys)

Hello Everyone,

I need help pleeeeeeeeeeeeeese.

I am trying to initlize the SRAM on the DE2 board using a C program, and I thought I will do this using SOPC.

I've been told that the name of the SRAM interface on Qsys or SOPC is "Avalon-MM Tristate Bridge" but I have an error when I add it to my simple SOPC system; it says:

"Error: tri_state_bridge_0.tristate_master must be connected to An Avalon-MM Tri state slave"

The question is:

1) Where do I connect this "tri_state_bridge.tristate_master"? or

2) Does anyone know how to access the SRAM using SOPC or Qsys?

Please help

11 Replies

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

    You need both the component you mentioned: tristate bridge and tristate slave.

    Tristate Bridge slave port has to be connected to an Avalon bus master (usually this is the same which is connected to Nios data and/or instruction port). The other bridge port connects to the tristate slave device. In your case you should have a specific component for your sram. Browse the Qsys/sopc components for the one matching your sram.

    If you don't have it you can use the component wizard to design one. Actually, this is usually a simple *.tcl file defining your sram timing and pin connections.