forked from somhi/VIC20_MiST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vic20.sdc
29 lines (22 loc) · 1.53 KB
/
vic20.sdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
set sysclk ${topmodule}pll_vic20|altpll_component|auto_generated|pll1|clk[0]
set clk1541 ${topmodule}pll|altpll_component|auto_generated|pll1|clk[0]
create_generated_clock -name sdramclk -source ${topmodule}pll_vic20|altpll_component|auto_generated|pll1|clk[0] -invert $RAM_CLK
# Clock groups
set_clock_groups -asynchronous -group [get_clocks $hostclk] -group [get_clocks $sysclk]
set_clock_groups -asynchronous -group [get_clocks $supportclk] -group [get_clocks $sysclk]
set_clock_groups -asynchronous -group [get_clocks $supportclk] -group [get_clocks $clk1541]
set_clock_groups -asynchronous -group [get_clocks spiclk] -group [get_clocks $clk1541]
set_clock_groups -asynchronous -group [get_clocks spiclk] -group [get_clocks $sysclk]
set_clock_groups -asynchronous -group [get_clocks $sysclk] -group [get_clocks $clk1541]
# Some relaxed constrain to the VGA pins. The signals should arrive together, the delay is not really important.
set_output_delay -clock [get_clocks $sysclk] -max 0 [get_ports $VGA_OUT]
set_output_delay -clock [get_clocks $sysclk] -min -5 [get_ports $VGA_OUT]
set_multicycle_path -to $VGA_OUT -setup 2
set_multicycle_path -to $VGA_OUT -hold 1
# SDRAM delays
set_input_delay -clock [get_clocks sdramclk] -max 6.4 [get_ports $RAM_IN]
set_input_delay -clock [get_clocks sdramclk] -min 3.2 [get_ports $RAM_IN]
set_output_delay -clock [get_clocks sdramclk] -max 1.5 [get_ports $RAM_OUT]
set_output_delay -clock [get_clocks sdramclk] -min -0.8 [get_ports $RAM_OUT]
set_false_path -to ${FALSE_OUT}
set_false_path -from ${FALSE_IN}