- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Dualport Ram _Frequency problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-07-2012 01:03 AM
Hello, I have written a dual port RAM
I want the data_out value appears one clock cycle after addr_out number like this:
In low frequency it works true but when the frequency go higher data_out appears in the same clock as addr_out not one clock cycle later.
what is the problem and what can I do?
Please guide me.
I have attached my code
Thanks
Re: Dualport Ram _Frequency problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-07-2012 02:06 PM
hupaa wrote:
Hello, I have written a dual port RAM
I want the data_out value appears one clock cycle after addr_out number like this:
In low frequency it works true but when the frequency go higher data_out appears in the same clock as addr_out not one clock cycle later.
what is the problem and what can I do?
Please guide me.
I have attached my code
Thanks
what timing constraints are you using, and is the design failing to meet those constraints?
----------------------------------------------------------------
Yes, I do this for a living.
Re: Dualport Ram _Frequency problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-07-2012 02:07 PM
Also, I wonder if a BRAM is actually inferred; the reset might preclude it.
----------------------------------------------------------------
Yes, I do this for a living.
Re: Dualport Ram _Frequency problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-08-2012 11:52 PM
I changed my code to the attach file and the problem resolved, but I dont know how I can set timing constraint ?
I only used prescaler signal to divide the base frequency that equal to 50M.
Thanks
Re: Dualport Ram _Frequency problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-09-2012 03:16 AM
For synthesis, in an XCF file.
For the Mapper/P&R, in a UCF file.
A good tutorial can be found here:
http://forums.xilinx.com/t5/PLD-Blog/Timing-Constr
------------------------------------------
"If it don't work in simulation, it won't work on the board."
Re: Dualport Ram _Frequency problem
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-10-2012 04:21 AM
Thanks a lot.
I have another question too, not for this dual port ram.
what is the reason of inconstancy in design?
I am programming the Spartan 3, 4,5 times. It works true, but suddenly in sixth time the result is not true.
Is it the problem of my vhdl code? or may be it depends on clk management?











