- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
bram controller
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-21-2012 05:33 AM
hello everybody,
I want to understand how does the BRAM with dual ports works. how it avoid two processors to write at the same time or to the same address.
each controller connected to one plb(bus), so it doesn't know what the other controller does.
I assume that the bram outputs a busy flag to the controllers, but in the list of the signals I don't see this signal, so how the controllers work?
thanks
Re: bram controller
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-21-2012 08:32 AM
l,
Nothing in the dual port BRAM prevents you from doing something stupid.
That is up to you to decide what you need, and then to design it so that it is prevented (or write a program to check, so you do not try to write to the same location, at the same time).
Principal Engineer
Xilinx San Jose
Re: bram controller
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-21-2012 09:45 AM
hello Austin,
First, thanks for your reply
I wrote a c code that causes both processors read and write the same location and the program worked excellent,
According to you, I realize this was in case and if I don't add anything to the shared memory the processors may also try to write together and the program gets stuck or give incorrect results. Is that right? There is no solution built in the shared memory that provided?
Erez
Re: bram controller
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-21-2012 09:55 AM
Erez,
If both ports try to write the same location, one will win, or one will lose, or both will lose (the wrong value will be written).
Nothing will stop. The BRAM doesn't care. Only your program will care, if it expects to get the same data back that it wrote (it may not).
The BRAM is a 8T SRAM cell: (not a pseudo dual port)
As each port has its own pair of data, and data_b series access transistors to the cell, as long as you are not trying to write the cell, these two ports will operate independently, properly.
Principal Engineer
Xilinx San Jose
Re: bram controller
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-21-2012 11:08 AM
Austin,
One more question, I did not understand the first sentence, what does that mean that one will win or lose - is simply not writing as he wants or he does not write at all? How the BRAM determines what to do in the event of a collision? Do you have a link for a detailed explanation on this issue?
thanks a lot
erez











