UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
4,775 Views
Registered: ‎05-31-2015

BRAM write and read delay

Hello,

 

I am using spartan 6 FPGA. I am writing a set of values from vhdl side to BRAM memory and read it out at the microblaze side.

But when I read from microblaze side I doubt if all the values I am giving to the bram from VHDL side is not written. and again writing resumes after a time period. Is it possible? Does the bram have some refresh cycle or something that halts operation. Data is written at rate of 150kbps and read out at same rate. Also I use cache on microblaze side. Will this cause some sort of delay (or interruption in between) in the reading side?

 

Thanks in advance.

 

With Regards

Shalini K

0 Kudos
2 Replies
Instructor
Instructor
4,760 Views
Registered: ‎08-14-2007

Re: BRAM write and read delay

If you are using cache on the shared BRAM, you need to invalidate the cache before reading in order to get the most recently written data.  There is nothing within the BRAM itself that would delay the write operations.  Only the cache system would do that.

-- Gabor
0 Kudos
Highlighted
Explorer
Explorer
4,458 Views
Registered: ‎05-31-2015

Re: BRAM write and read delay

hello,

                      Sorry for delay in reply . I have been in some other project  for sometime. I noticed one more issue. In microblaze I have enabled cache for DDR memory access and the segments like .bss lies in the DDR memory. I started a timer and read a single value from BRAM,got value from timer for eg cnt  and stopped timer . I am getting different values for cnt each time I run program. Why does this happen? The value has to be same since we should take same time period to read a single value from BRAM each time.

 

With Regards

Shalini

 

Tags (2)
0 Kudos