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.
21616 Discussions

SRAM view content

Altera_Forum
Honored Contributor II
1,514 Views

Hello friends, 

 

I have a project on Cyclone III which includes internal SRAM (megafunction). How can I view SRAM contents at simulation stage (like on MCU's IDE when set a breakpoint and watch all memory at desired address). 

 

Thanks in advance,
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
575 Views

Are really simulating as you've indicated or are you debugging? 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
575 Views

Thanks Jake for question, here are more details : 

 

I've implemented a single port SRAM 8 x 4096 bytes which is written / read by my FPGA application. During vector wave simulation, I'd like to view at some point (on timescale) memory contents (to test if my process really updates that particularly cell). 

 

If I was in C, I'd setup some breakpoint in code and simple watch memory at desired address from IDE (step by step). For the moment I haven't Cyclone board physically, so I must limit to simulation.  

 

Btw, excuse me for this newbie question: on FPGA exists this IDE concept of running step by step just written code?  

 

And one more big misunderstanding, if we already are at SRAM thread: speaking about Cyclone III - from its datasheet I read memory blocks are running at 315MHz. How is this possible since in Quartus simulation (classic) I noticed data is available for read no quicker than 10nS after addresses stabilize (as a good old fashion SRAM I saw) which means at most 100MHz.  

 

Thanks,
0 Kudos
Altera_Forum
Honored Contributor II
575 Views

Are you simulating with Modelsim?

0 Kudos
Altera_Forum
Honored Contributor II
575 Views

I use standard simulation offered in Quartus. I generated a vector waveform, I added all in/out signals I need and I initialized over time "in" signals with whatever desired. 

 

The I run simulation and watch "out" signals.
0 Kudos
Altera_Forum
Honored Contributor II
575 Views

anyone can explain? tnx.

0 Kudos
Reply