2021-02-01 00:40:56 +01:00
|
|
|
# Clocks
|
2020-10-08 02:04:42 +02:00
|
|
|
|
|
|
|
derive_pll_clocks -create_base_clocks
|
|
|
|
|
2021-02-01 00:40:56 +01:00
|
|
|
set sys_clk {sys_pll|altpll_component|auto_generated|pll1|clk[0]}
|
|
|
|
set sdram_pll_clk {sys_pll|altpll_component|auto_generated|pll1|clk[1]}
|
2021-02-17 00:24:31 +01:00
|
|
|
set sd_reg_clk {sd_interface_inst|sd_clk_inst|o_sd_clk|q}
|
2021-02-01 00:40:56 +01:00
|
|
|
|
2021-02-17 00:24:31 +01:00
|
|
|
create_generated_clock -name sdram_clk -source [get_pins $sdram_pll_clk] [get_ports {o_sdram_clk}]
|
|
|
|
create_generated_clock -name sd_reg_clk -source [get_pins {sd_interface_inst|sd_clk_inst|o_sd_clk|clk}] -divide_by 2 [get_pins $sd_reg_clk]
|
|
|
|
create_generated_clock -name sd_clk -source [get_pins $sd_reg_clk] [get_ports {o_sd_clk}]
|
2021-02-14 21:56:50 +01:00
|
|
|
|
|
|
|
create_generated_clock -name flash_se_neg_reg \
|
2021-02-01 00:40:56 +01:00
|
|
|
-source [get_pins -compatibility_mode {*altera_onchip_flash:*onchip_flash_0|altera_onchip_flash_avmm_data_controller:avmm_data_controller|flash_se_neg_reg|clk}] \
|
2021-02-14 21:56:50 +01:00
|
|
|
-divide_by 2 \
|
2021-02-01 00:40:56 +01:00
|
|
|
[get_pins -compatibility_mode {*altera_onchip_flash:*onchip_flash_0|altera_onchip_flash_avmm_data_controller:avmm_data_controller|flash_se_neg_reg|q}]
|
|
|
|
|
2020-10-08 02:04:42 +02:00
|
|
|
derive_clock_uncertainty
|
2021-02-01 00:40:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
# SDRAM timings
|
|
|
|
|
|
|
|
set sdram_outputs {o_sdram_cs o_sdram_ras o_sdram_cas o_sdram_we o_sdram_a[*] o_sdram_ba[*] io_sdram_dq[*]}
|
|
|
|
set sdram_inputs {io_sdram_dq[*]}
|
|
|
|
|
|
|
|
set_output_delay -clock [get_clocks {sdram_clk}] -max 1.5 [get_ports $sdram_outputs]
|
|
|
|
set_output_delay -clock [get_clocks {sdram_clk}] -min -0.8 [get_ports $sdram_outputs]
|
|
|
|
|
|
|
|
set_input_delay -clock [get_clocks {sdram_clk}] -max 5.4 [get_ports $sdram_inputs]
|
|
|
|
set_input_delay -clock [get_clocks {sdram_clk}] -min 2.5 [get_ports $sdram_inputs]
|
|
|
|
|
|
|
|
set_multicycle_path -setup -end 2 -from [get_clocks {sdram_clk}] -to [get_clocks $sys_clk]
|
|
|
|
|
|
|
|
|
|
|
|
# FTDI timings
|
|
|
|
|
|
|
|
set_false_path -to [get_ports {o_ftdi_clk o_ftdi_si}]
|
|
|
|
set_false_path -from [get_ports {i_ftdi_so i_ftdi_cts}]
|
|
|
|
|
|
|
|
|
|
|
|
# SD card timings
|
|
|
|
|
2021-02-17 00:24:31 +01:00
|
|
|
set_output_delay -clock [get_clocks {sd_clk}] -max 6.0 [get_ports {io_sd_cmd io_sd_dat[*]}]
|
|
|
|
set_output_delay -clock [get_clocks {sd_clk}] -min -2.0 [get_ports {io_sd_cmd io_sd_dat[*]}]
|
2021-02-14 21:56:50 +01:00
|
|
|
|
2021-02-17 00:24:31 +01:00
|
|
|
set_input_delay -clock [get_clocks {sd_clk}] -max 14.0 [get_ports {io_sd_cmd io_sd_dat[*]}]
|
|
|
|
set_input_delay -clock [get_clocks {sd_clk}] -min 2.5 [get_ports {io_sd_cmd io_sd_dat[*]}]
|
2021-02-14 21:56:50 +01:00
|
|
|
|
|
|
|
set_multicycle_path -setup -start 1 -from [get_clocks $sys_clk] -to [get_clocks {sd_clk}]
|
|
|
|
set_multicycle_path -hold -start 1 -from [get_clocks $sys_clk] -to [get_clocks {sd_clk}]
|
|
|
|
|
|
|
|
set_multicycle_path -setup -end 3 -from [get_clocks {sd_clk}] -to [get_clocks $sys_clk]
|
|
|
|
set_multicycle_path -hold -end 2 -from [get_clocks {sd_clk}] -to [get_clocks $sys_clk]
|
2021-02-01 00:40:56 +01:00
|
|
|
|
|
|
|
|
|
|
|
# N64, PI and SI timings
|
|
|
|
|
|
|
|
set_false_path -from [get_ports {i_n64_reset i_n64_nmi}]
|
|
|
|
|
|
|
|
set_false_path -to [get_ports {io_n64_pi_ad[*]}]
|
|
|
|
set_false_path -from [get_ports {i_n64_pi_* io_n64_pi_ad[*]}]
|
|
|
|
|
|
|
|
set_false_path -to [get_ports {io_n64_si_dq}]
|
|
|
|
set_false_path -from [get_ports {i_n64_si_clk io_n64_si_dq}]
|
|
|
|
|
|
|
|
|
|
|
|
# LED timings
|
|
|
|
|
|
|
|
set_false_path -to [get_ports {o_led}]
|
|
|
|
|
|
|
|
|
|
|
|
# PMOD timings
|
|
|
|
|
|
|
|
set_false_path -to [get_ports {io_pmod[*]}]
|
|
|
|
set_false_path -from [get_ports {io_pmod[*]}]
|