Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

To change external memory access time?

Altera_Forum
Honored Contributor II
1,299 Views

Hello, 

 

I have a board with Nios using external SRAM built in two flavors: the one is fast 10ns SRAM the other is a battery-backed 70ns SRAM. The boards will have different software to work on each build. 

 

My goal is to have both boards configured with the same FPGA file. 

 

Is there a way to configure a tristate slave with 70ns access time and than change this access time to 10ns from the software somehow? 

 

My code loads from flash memory to SRAM and executes from SRAM. 

 

Any ideas?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
591 Views

The number of wait states for an SRAM are fixed when the SOPC builder project compiles. 

The only way around this that I can see is to write your own component in HDL for the SRAM, and use the wait_request signal to pause the master. Your HDL component could contain a register to configure the number of cycles to keep the wait_request signal enabled for each access.
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

Avalon Tristate Slave does not even have wait request signal. 

What kind of HDL component do you have on your mind? 

How deep in the Avalon switch fabrics would I have to do into?
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

You could do a traditionnal Avalon slave that connects to your SRAM through a conduit, instead of using the tristate interface. I did it for a ZBT SSRAM and it is quite easy to do. 

Of course this would only work if you don't share the SRAM pins with another component.
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

I do share the SRAM pins with the CFI chip.

0 Kudos
Reply