Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Visitor
hupaa
Posts: 37
Registered: ‎04-29-2012
0

Dualport Ram _Frequency problem

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

 

Expert Contributor
bassman59
Posts: 4,679
Registered: ‎02-25-2008
0

Re: Dualport Ram _Frequency problem


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.
Expert Contributor
bassman59
Posts: 4,679
Registered: ‎02-25-2008
0

Re: Dualport Ram _Frequency problem

Also, I wonder if a BRAM is actually inferred; the reset might preclude it.


----------------------------------------------------------------
Yes, I do this for a living.
Regular Visitor
hupaa
Posts: 37
Registered: ‎04-29-2012
0

Re: Dualport Ram _Frequency problem

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

Expert Contributor
rcingham
Posts: 2,010
Registered: ‎09-09-2010
0

Re: Dualport Ram _Frequency problem

> I dont know how I can set timing constraint?

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-Constraints-Part-1-of-5/ba-p/57594

------------------------------------------
"If it don't work in simulation, it won't work on the board."
Regular Visitor
hupaa
Posts: 37
Registered: ‎04-29-2012
0

Re: Dualport Ram _Frequency problem

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?