OpenCores
URL https://opencores.org/ocsvn/versatile_mem_ctrl/versatile_mem_ctrl/trunk

Subversion Repositories versatile_mem_ctrl

[/] [versatile_mem_ctrl/] [trunk/] [syn/] [altera/] [bin/] [versatile_memory_controller.sdc] - Blame information for rev 21

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 15 mikaeljf
#**************************************************************
2
# Time Information
3
#**************************************************************
4 21 mikaeljf
# Timing specifications from Micron Data Sheet (DDR2 SDRAM MT47H32M16-5E)
5 15 mikaeljf
 
6 20 mikaeljf
# Clock cycle time: min=5.00ns, max=8.00ns
7
set tCK 5.000
8 15 mikaeljf
 
9 20 mikaeljf
# Input setup time: tISb=350ps, tISa=600ps
10
set tSU 0.600
11 15 mikaeljf
 
12 20 mikaeljf
# Input hold time: tIHb=470ps, tIHa=600ps
13
set tH  0.600
14
 
15
# DQS output access time from CK/CK#
16
set tDQSCKmin -0.500
17
set tDQSCKmax  0.500
18
 
19
# DQ output access time from CK/CK#
20
set tACmin -0.600
21
set tACmax  0.600
22
 
23
 
24 15 mikaeljf
#**************************************************************
25
# Create Clock
26
#**************************************************************
27
 
28
# Clock frequency
29
set wb_clk_period 20.000
30 20 mikaeljf
set sdram_clk_period $tCK
31 15 mikaeljf
 
32
# Clocks
33 20 mikaeljf
create_clock -name {wb_clk} -period $wb_clk_period [get_ports {wb_clk}]
34
create_clock -name {sdram_clk} -period $sdram_clk_period [get_ports {sdram_clk}]
35 15 mikaeljf
 
36
# Virtual clocks
37
create_clock -name {v_wb_clk_in} -period $wb_clk_period
38
create_clock -name {v_wb_clk_out} -period $wb_clk_period
39
create_clock -name {v_sdram_clk_in} -period $sdram_clk_period
40
create_clock -name {v_sdram_clk_out} -period $sdram_clk_period
41
 
42 21 mikaeljf
 
43 15 mikaeljf
#**************************************************************
44
# Create Generated Clock
45
#**************************************************************
46
 
47 20 mikaeljf
create_generated_clock -name sdram_clk_0 -phase 0 -source [get_ports {sdram_clk}] [get_pins {dcm_pll_0|altpll_internal|auto_generated|pll1|clk[0]}]
48 21 mikaeljf
 
49 20 mikaeljf
create_generated_clock -name sdram_clk_180 -phase 180 -source [get_ports {sdram_clk}] [get_pins {dcm_pll_0|altpll_internal|auto_generated|pll1|clk[2]}]
50 21 mikaeljf
 
51 20 mikaeljf
create_generated_clock -name sdram_clk_270 -phase 270 -source [get_ports {sdram_clk}] [get_pins {dcm_pll_0|altpll_internal|auto_generated|pll1|clk[3]}]
52 21 mikaeljf
 
53 20 mikaeljf
create_generated_clock -name ck_pad_o -phase 0 -source [get_pins {ddr_ff_out_inst_2|altddio_out_inst|auto_generated|ddio_outa[0]|clkhi}] [get_ports ck_pad*]
54 15 mikaeljf
 
55 21 mikaeljf
 
56 15 mikaeljf
#**************************************************************
57
# Set Clock Latency
58
#**************************************************************
59
 
60
 
61
 
62
#**************************************************************
63
# Set Clock Uncertainty
64
#**************************************************************
65
 
66
derive_clock_uncertainty
67
 
68
 
69
#**************************************************************
70
# Set Input Delay
71
#**************************************************************
72
 
73 21 mikaeljf
set_input_delay -clock {ck_pad_o} -max $tACmax             [get_ports {dq_pad_io[*]}] -add_delay
74
set_input_delay -clock {ck_pad_o} -max $tACmax -clock_fall [get_ports {dq_pad_io[*]}] -add_delay
75
set_input_delay -clock {ck_pad_o} -min $tACmin             [get_ports {dq_pad_io[*]}] -add_delay
76
set_input_delay -clock {ck_pad_o} -min $tACmin -clock_fall [get_ports {dq_pad_io[*]}] -add_delay
77 15 mikaeljf
 
78 21 mikaeljf
#set_input_delay -clock {ck_pad_o} -max $tDQSCKmax             [get_ports {dqs_pad_io[*]}] -add_delay
79
#set_input_delay -clock {ck_pad_o} -max $tDQSCKmax -clock_fall [get_ports {dqs_pad_io[*]}] -add_delay
80
#set_input_delay -clock {ck_pad_o} -min $tDQSCKmin             [get_ports {dqs_pad_io[*]}] -add_delay
81
#set_input_delay -clock {ck_pad_o} -min $tDQSCKmin -clock_fall [get_ports {dqs_pad_io[*]}] -add_delay
82 15 mikaeljf
 
83 21 mikaeljf
#set_input_delay -clock {ck_pad_o} -max $tDQSCKmax             [get_ports {dqs_n_pad_io[*]}] -add_delay
84
#set_input_delay -clock {ck_pad_o} -max $tDQSCKmax -clock_fall [get_ports {dqs_n_pad_io[*]}] -add_delay
85
#set_input_delay -clock {ck_pad_o} -min $tDQSCKmin             [get_ports {dqs_n_pad_io[*]}] -add_delay
86
#set_input_delay -clock {ck_pad_o} -min $tDQSCKmin -clock_fall [get_ports {dqs_n_pad_io[*]}] -add_delay
87 15 mikaeljf
 
88 21 mikaeljf
 
89 15 mikaeljf
#**************************************************************
90
# Set Output Delay
91
#**************************************************************
92
 
93 21 mikaeljf
set_output_delay -clock {ck_pad_o} -max $tSU             [get_ports {dq_pad_io[*]}] -add_delay
94
set_output_delay -clock {ck_pad_o} -max $tSU -clock_fall [get_ports {dq_pad_io[*]}] -add_delay
95
set_output_delay -clock {ck_pad_o} -min -$tH             [get_ports {dq_pad_io[*]}] -add_delay
96
set_output_delay -clock {ck_pad_o} -min -$tH -clock_fall [get_ports {dq_pad_io[*]}] -add_delay
97 15 mikaeljf
 
98 21 mikaeljf
#set_output_delay -clock {ck_pad_o} -max $tSU             [get_ports {dqs_pad_io[*]}] -add_delay
99
#set_output_delay -clock {ck_pad_o} -max $tSU -clock_fall [get_ports {dqs_pad_io[*]}] -add_delay
100
#set_output_delay -clock {ck_pad_o} -min -$tH             [get_ports {dqs_pad_io[*]}] -add_delay
101
#set_output_delay -clock {ck_pad_o} -min -$tH -clock_fall [get_ports {dqs_pad_io[*]}] -add_delay
102 15 mikaeljf
 
103 21 mikaeljf
#set_output_delay -clock {ck_pad_o} -max $tSU             [get_ports {dqs_n_pad_io[*]}] -add_delay
104
#set_output_delay -clock {ck_pad_o} -max $tSU -clock_fall [get_ports {dqs_pad_n_io[*]}] -add_delay
105
#set_output_delay -clock {ck_pad_o} -min -$tH             [get_ports {dqs_n_pad_io[*]}] -add_delay
106
#set_output_delay -clock {ck_pad_o} -min -$tH -clock_fall [get_ports {dqs_n_pad_io[*]}] -add_delay
107 15 mikaeljf
 
108 21 mikaeljf
 
109
 
110 15 mikaeljf
#**************************************************************
111
# Set Clock Groups
112
#**************************************************************
113
 
114
 
115
 
116
#**************************************************************
117
# Set False Path
118
#**************************************************************
119
 
120 20 mikaeljf
# Reset
121 15 mikaeljf
set_false_path -from [get_ports {wb_rst}]
122 21 mikaeljf
 
123 20 mikaeljf
# Input Timing Exceptions
124 21 mikaeljf
set_false_path -setup -fall_from [get_clocks ck_pad_o] -rise_to [get_clocks sdram_clk_270]
125
set_false_path -setup -rise_from [get_clocks ck_pad_o] -fall_to [get_clocks sdram_clk_270]
126
set_false_path -hold  -rise_from [get_clocks ck_pad_o] -fall_to [get_clocks sdram_clk_270]
127
set_false_path -hold  -fall_from [get_clocks ck_pad_o] -rise_to [get_clocks sdram_clk_270]
128 15 mikaeljf
 
129 21 mikaeljf
# Output Timing Exceptions
130
set_false_path -setup -rise_from [get_clocks sdram_clk_270] -fall_to [get_clocks ck_pad_o]
131
set_false_path -setup -fall_from [get_clocks sdram_clk_270] -rise_to [get_clocks ck_pad_o]
132
set_false_path -hold  -rise_from [get_clocks sdram_clk_270] -rise_to [get_clocks ck_pad_o]
133
set_false_path -hold  -fall_from [get_clocks sdram_clk_270] -fall_to [get_clocks ck_pad_o]
134 15 mikaeljf
 
135 21 mikaeljf
 
136 15 mikaeljf
#**************************************************************
137
# Set Multicycle Path
138
#**************************************************************
139
 
140
 
141
 
142
#**************************************************************
143
# Set Maximum Delay
144
#**************************************************************
145
 
146
 
147
 
148
#**************************************************************
149
# Set Minimum Delay
150
#**************************************************************
151
 
152
 
153
 
154
#**************************************************************
155
# Set Input Transition
156
#**************************************************************
157
 
158 21 mikaeljf
 
159
 
160
#**************************************************************
161
# Set Input Transition
162
#**************************************************************
163
 
164
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.