Altera_Forum
Honored Contributor
14 years agoSDRAM timing constraints
Using http://www.altera.com/literature/ug/ug_sopc_builder.pdf as a reference, I've been trying to constrain my SDRAM I/O. I've been using the SDRAM without constraints and it has been working fine at 80MHz with a 3.2ns leading phase shift. Now, what I don't understand is what I'm missing from this document. Using only the 5 tcl commands they show I don't get the correct timing relationship for reads. It shows the launch clock correctly, but the latch clock edge is wrong. It should not be the closest edge.
Am I suppose to put in a multicycle path relationship? My constraints
create_generated_clock -name sdram_clk -source }] -offset 0.5
set_input_delay -clock sdram_clk -max }]
set_input_delay -clock sdram_clk -min }]
set_output_delay -clock sdram_clk -max MEM_ADDR
MEM_BA
MEM_nCS MEM_nRAS MEM_nCAS MEM_nWE}]
set_output_delay -clock sdram_clk -min MEM_ADDR
MEM_BA
MEM_nCS MEM_nRAS MEM_nCAS MEM_nWE}]