fifo_async.xdc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # clock constraint
  2. create_clock -name rd_clk -period 10 [get_ports {rd_clk}];
  3. create_clock -name wr_clk -period 5 [get_ports {wr_clk}];
  4. # onboard clock port
  5. set_property PACKAGE_PIN Y9 [get_ports {rd_clk}]; # "GCLK"
  6. # PMOD A port
  7. set_property PACKAGE_PIN Y11 [get_ports {wr_en}]; # "JA1"
  8. set_property PACKAGE_PIN AA11 [get_ports {full}]; # "JA2"
  9. set_property PACKAGE_PIN AA9 [get_ports {wr_clk}]; # "JA4"
  10. # PMOD B port
  11. set_property PACKAGE_PIN W12 [get_ports {wr_data[0]}]; # "JB1"
  12. set_property PACKAGE_PIN W11 [get_ports {wr_data[1]}]; # "JB2"
  13. set_property PACKAGE_PIN V10 [get_ports {wr_data[2]}]; # "JB3"
  14. set_property PACKAGE_PIN W8 [get_ports {wr_data[3]}]; # "JB4"
  15. set_property PACKAGE_PIN V12 [get_ports {wr_data[4]}]; # "JB7"
  16. set_property PACKAGE_PIN W10 [get_ports {wr_data[5]}]; # "JB8"
  17. set_property PACKAGE_PIN V9 [get_ports {wr_data[6]}]; # "JB9"
  18. set_property PACKAGE_PIN V8 [get_ports {wr_data[7]}]; # "JB10"
  19. # PMOD C port
  20. set_property PACKAGE_PIN AB6 [get_ports {wr_data[8]}]; # "JC1_N"
  21. set_property PACKAGE_PIN AB7 [get_ports {wr_data[9]}]; # "JC1_P"
  22. set_property PACKAGE_PIN AA4 [get_ports {wr_data[10]}]; # "JC2_N"
  23. set_property PACKAGE_PIN Y4 [get_ports {wr_data[11]}]; # "JC2_P"
  24. set_property PACKAGE_PIN T6 [get_ports {wr_data[12]}]; # "JC3_N"
  25. set_property PACKAGE_PIN R6 [get_ports {wr_data[13]}]; # "JC3_P"
  26. set_property PACKAGE_PIN U4 [get_ports {wr_data[14]}]; # "JC4_N"
  27. set_property PACKAGE_PIN T4 [get_ports {wr_data[15]}]; # "JC4_P"
  28. # LEDs
  29. set_property PACKAGE_PIN T22 [get_ports {led[0]}]; # "LD0"
  30. set_property PACKAGE_PIN T21 [get_ports {led[1]}]; # "LD1"
  31. set_property PACKAGE_PIN U22 [get_ports {led[2]}]; # "LD2"
  32. set_property PACKAGE_PIN U21 [get_ports {led[3]}]; # "LD3"
  33. set_property PACKAGE_PIN V22 [get_ports {led[4]}]; # "LD4"
  34. # push buttons
  35. set_property PACKAGE_PIN P16 [get_ports {reset}]; # "BTNC"
  36. set_property IOSTANDARD LVCMOS33 [get_ports -of_objects [get_iobanks 33]];
  37. set_property IOSTANDARD LVCMOS18 [get_ports -of_objects [get_iobanks 34]];
  38. # bank 35 not used
  39. #set_property IOSTANDARD LVCMOS18 [get_ports -of_objects [get_iobanks 35]];
  40. set_property IOSTANDARD LVCMOS33 [get_ports -of_objects [get_iobanks 13]];
  41. set_max_delay 5 -datapath_only -from [get_clocks wr_clk] -to [get_clocks rd_clk]
  42. set_input_delay 2 -clock [get_clocks wr_clk] [get_ports wr_en]
  43. set_input_delay 2 -clock [get_clocks wr_clk] [get_ports wr_data]
  44. set_false_path -from [get_ports reset]
  45. set_false_path -to [get_ports full]
  46. set_false_path -to [get_ports led]
  47. set_false_path -from [get_clocks rd_clk] -to [get_clocks wr_clk]
  48. set_false_path -from [get_clocks wr_clk] -to [get_clocks rd_clk]