max80.sdc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # -*- tcl -*-
  2. # Clock constraints
  3. # Note: round up
  4. create_clock -name "clock_48" -period 20.834ns [get_ports {clock_48}]
  5. create_clock -name "rtc_32khz" -period 30517.579ns [get_ports {rtc_32khz}]
  6. # Automatically constrain PLL and other generated clocks
  7. derive_pll_clocks
  8. # Automatically calculate clock uncertainty to jitter and other effects.
  9. derive_clock_uncertainty
  10. # Reset isn't actually a clock, but Quartus thinks it is
  11. create_generated_clock -name rst_n \
  12. -source [get_nets pll|*clk\[1\]] \
  13. [get_registers rst_n]
  14. # Reset is asynchronous with everything as far as we are concerned.
  15. set main_clocks [get_clocks pll|*]
  16. set_clock_groups -asynchronous \
  17. -group $main_clocks \
  18. -group [get_clocks rst_n]
  19. # Anything that feeds into a synchronizer is by definition
  20. # asynchronous, but encode it as allowing multicycle of one
  21. # clock, to limit the possible skew (but it is of course not possible
  22. # to eliminate it...)
  23. set synchro_inputs [get_registers *|synchronizer:*|qreg0*]
  24. set_multicycle_path -from [all_clocks] -to $synchro_inputs \
  25. -start -setup 2
  26. set_multicycle_path -from [all_clocks] -to $synchro_inputs \
  27. -start -hold 1
  28. # Don't report signaltap clock problems...
  29. set_false_path -to [get_registers sld_signaltap:*]