| 1 |
2 |
peteralieb |
CONFIG PART = 5vlx110tff1136-1;
|
| 2 |
|
|
|
| 3 |
|
|
##################################
|
| 4 |
|
|
# BLOCK Level constraints
|
| 5 |
|
|
##################################
|
| 6 |
|
|
|
| 7 |
|
|
# EMAC0 Clocking
|
| 8 |
|
|
# 125MHz clock input from BUFG
|
| 9 |
|
|
NET "enet_inst?CLK125" TNM_NET = "clk_gtp";
|
| 10 |
|
|
TIMEGRP "v5_emac_v1_6_gtp_clk" = "clk_gtp";
|
| 11 |
|
|
TIMESPEC "TS_v5_emac_v1_6_gtp_clk" = PERIOD "v5_emac_v1_6_gtp_clk" 7700 ps HIGH 50 %;
|
| 12 |
|
|
# EMAC0 Tri-speed clock input from BUFG
|
| 13 |
|
|
NET "enet_inst?CLIENT_CLK_0" TNM_NET = "clk_client0";
|
| 14 |
|
|
TIMEGRP "v5_emac_v1_6_gtp_clk_client0" = "clk_client0";
|
| 15 |
|
|
TIMESPEC "TS_v5_emac_v1_6_gtp_clk_client0" = PERIOD "v5_emac_v1_6_gtp_clk_client0" 7700 ps HIGH 50 %;
|
| 16 |
|
|
# LocalLink clock groups
|
| 17 |
|
|
NET "clk_local" TNM_NET = "clk_ll";
|
| 18 |
|
|
TIMEGRP "patlpp_sysclk" = "clk_ll";
|
| 19 |
|
|
TIMESPEC "TS_patlpp_sysclk" = PERIOD "patlpp_sysclk" 13ns HIGH 50%;
|
| 20 |
|
|
|
| 21 |
|
|
|
| 22 |
|
|
#-----------------------------------------------------------
|
| 23 |
|
|
# EMAC0 Fabric Rx Elastic Buffer Timing Constraints: -
|
| 24 |
|
|
#-----------------------------------------------------------
|
| 25 |
|
|
NET "*GTP_DUAL_1000X_inst?RXRECCLK_0_BUFR" TNM_NET = "clk_rec_clk0";
|
| 26 |
|
|
TIMEGRP "v5_emac_v1_6_client_rec_clk0" = "clk_rec_clk0";
|
| 27 |
|
|
TIMESPEC "TS_v5_emac_v1_6_rec_clk0" = PERIOD "v5_emac_v1_6_client_rec_clk0" 7700 ps HIGH 50 %;
|
| 28 |
|
|
|
| 29 |
|
|
# Control Gray Code delay and skew
|
| 30 |
|
|
INST "*GTP_DUAL_1000X_inst?rx_elastic_buffer_inst_0?rd_addr_gray_?" TNM = "rx_elastic_rd_to_wr_0";
|
| 31 |
|
|
TIMESPEC "TS_rx_elastic_rd_to_wr_0" = FROM "rx_elastic_rd_to_wr_0" TO "clk_rec_clk0" 7500 ps DATAPATHONLY;
|
| 32 |
|
|
INST "*GTP_DUAL_1000X_inst?rx_elastic_buffer_inst_0?wr_addr_gray_?" TNM = "elastic_metastable_0";
|
| 33 |
|
|
TIMESPEC "ts_elastic_meta_protect_0" = FROM "elastic_metastable_0" 5 ns DATAPATHONLY;
|
| 34 |
|
|
|
| 35 |
|
|
# Reduce clock period to allow 3 ns for metastability settling time
|
| 36 |
|
|
INST "*GTP_DUAL_1000X_inst?rx_elastic_buffer_inst_0?rd_wr_addr_gray*" TNM = "rx_graycode_0";
|
| 37 |
|
|
INST "*GTP_DUAL_1000X_inst?rx_elastic_buffer_inst_0?rd_occupancy*" TNM = "rx_binary_0";
|
| 38 |
|
|
TIMESPEC "ts_rx_buf_meta_protect_0" = FROM "rx_graycode_0" TO "rx_binary_0" 5 ns;
|
| 39 |
|
|
|
| 40 |
|
|
|
| 41 |
|
|
|
| 42 |
|
|
|
| 43 |
|
|
|
| 44 |
|
|
|
| 45 |
|
|
##################################
|
| 46 |
|
|
# LocalLink Level constraints
|
| 47 |
|
|
##################################
|
| 48 |
|
|
|
| 49 |
|
|
|
| 50 |
|
|
# EMAC0 LocalLink client FIFO constraints.
|
| 51 |
|
|
|
| 52 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?rd_tran_frame_tog" TNM = "tx_fifo_rd_to_wr_0";
|
| 53 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?rd_retran_frame_tog" TNM = "tx_fifo_rd_to_wr_0";
|
| 54 |
|
|
#INST "*client_side_FIFO_emac0?tx_fifo_i?rd_col_window_pipe_1" TNM = "tx_fifo_rd_to_wr_0";
|
| 55 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?rd_addr_txfer*" TNM = "tx_fifo_rd_to_wr_0";
|
| 56 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?rd_txfer_tog" TNM = "tx_fifo_rd_to_wr_0";
|
| 57 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?wr_frame_in_fifo" TNM = "tx_fifo_wr_to_rd_0";
|
| 58 |
|
|
|
| 59 |
|
|
TIMESPEC "TS_tx_fifo_rd_to_wr_0" = FROM "tx_fifo_rd_to_wr_0" TO "v5_emac_v1_6_gtp_clk_client0" 8000 ps DATAPATHONLY;
|
| 60 |
|
|
TIMESPEC "TS_tx_fifo_wr_to_rd_0" = FROM "tx_fifo_wr_to_rd_0" TO "v5_emac_v1_6_gtp_clk_client0" 8000 ps DATAPATHONLY;
|
| 61 |
|
|
|
| 62 |
|
|
|
| 63 |
|
|
# Reduce clock period to allow 3 ns for metastability settling time
|
| 64 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?wr_tran_frame_tog" TNM = "tx_metastable_0";
|
| 65 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?wr_rd_addr*" TNM = "tx_metastable_0";
|
| 66 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?wr_txfer_tog" TNM = "tx_metastable_0";
|
| 67 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?frame_in_fifo" TNM = "tx_metastable_0";
|
| 68 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?wr_retran_frame_tog*" TNM = "tx_metastable_0";
|
| 69 |
|
|
#INST "*client_side_FIFO_emac0?tx_fifo_i?wr_col_window_pipe_0" TNM = "tx_metastable_0";
|
| 70 |
|
|
|
| 71 |
|
|
TIMESPEC "ts_tx_meta_protect_0" = FROM "tx_metastable_0" 5 ns DATAPATHONLY;
|
| 72 |
|
|
|
| 73 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?rd_addr_txfer*" TNM = "tx_addr_rd_0";
|
| 74 |
|
|
INST "*client_side_FIFO_emac0?tx_fifo_i?wr_rd_addr*" TNM = "tx_addr_wr_0";
|
| 75 |
|
|
TIMESPEC "TS_tx_fifo_addr_0" = FROM "tx_addr_rd_0" TO "tx_addr_wr_0" 10ns;
|
| 76 |
|
|
|
| 77 |
|
|
## RX Client FIFO
|
| 78 |
|
|
# Group the clock crossing signals into timing groups
|
| 79 |
|
|
INST "*client_side_FIFO_emac0?rx_fifo_i?wr_store_frame_tog" TNM = "rx_fifo_wr_to_rd_0";
|
| 80 |
|
|
INST "*client_side_FIFO_emac0?rx_fifo_i?rd_addr_gray*" TNM = "rx_fifo_rd_to_wr_0";
|
| 81 |
|
|
|
| 82 |
|
|
TIMESPEC "TS_rx_fifo_wr_to_rd_0" = FROM "rx_fifo_wr_to_rd_0" TO "v5_emac_v1_6_gtp_clk_client0" 8000 ps DATAPATHONLY;
|
| 83 |
|
|
TIMESPEC "TS_rx_fifo_rd_to_wr_0" = FROM "rx_fifo_rd_to_wr_0" TO "v5_emac_v1_6_gtp_clk_client0" 8000 ps DATAPATHONLY;
|
| 84 |
|
|
|
| 85 |
|
|
|
| 86 |
|
|
# Reduce clock period to allow for metastability settling time
|
| 87 |
|
|
INST "*client_side_FIFO_emac0?rx_fifo_i?wr_rd_addr_gray_sync*" TNM = "rx_metastable_0";
|
| 88 |
|
|
INST "*client_side_FIFO_emac0?rx_fifo_i?rd_store_frame_tog" TNM = "rx_metastable_0";
|
| 89 |
|
|
|
| 90 |
|
|
TIMESPEC "ts_rx_meta_protect_0" = FROM "rx_metastable_0" 5 ns;
|
| 91 |
|
|
|
| 92 |
|
|
|
| 93 |
|
|
# Area constaint to place example design near embedded TEMAC. Constraint is
|
| 94 |
|
|
# optional and not necessary for a successful implementation of the design.
|
| 95 |
|
|
#INST v5_emac_ll/* AREA_GROUP = AG_v5_emac ;
|
| 96 |
|
|
#AREA_GROUP "AG_v5_emac" RANGE = CLOCKREGION_X1Y2,CLOCKREGION_X1Y3 ;
|
| 97 |
|
|
|
| 98 |
|
|
##################################
|
| 99 |
|
|
# EXAMPLE DESIGN Level constraints
|
| 100 |
|
|
##################################
|
| 101 |
|
|
|
| 102 |
|
|
|
| 103 |
|
|
# Place the transceiver components. Please alter to your chosen transceiver.
|
| 104 |
|
|
INST "*GTP_DUAL_1000X_inst?GTP_1000X?tile0_rocketio_wrapper_i?gtp_dual_i" LOC = "GTP_DUAL_X0Y4";
|
| 105 |
|
|
#INST "enet_inst?MGTCLK_N" LOC = "P3";
|
| 106 |
|
|
#INST "enet_inst?MGTCLK_P" LOC = "P4";
|
| 107 |
|
|
INST "MGTCLK_N" LOC = "P3";
|
| 108 |
|
|
INST "MGTCLK_P" LOC = "P4";
|
| 109 |
|
|
|
| 110 |
|
|
#Added per tutorial
|
| 111 |
|
|
NET "GTP_READY" LOC = AF23; #LED W
|
| 112 |
|
|
NET "PHY_RESET_0" LOC = J14; #ML505 PHY Reset
|
| 113 |
|
|
NET "RESET" LOC = AJ6; # Push Button Center
|
| 114 |
|
|
NET "RESET_CPU" LOC = E9; # CPU Reset Button
|
| 115 |
|
|
|
| 116 |
|
|
#LED Status
|
| 117 |
|
|
NET "LEDS<0>" LOC = H18;
|
| 118 |
|
|
NET "LEDS<1>" LOC = L18;
|
| 119 |
|
|
NET "LEDS<2>" LOC = G15;
|
| 120 |
|
|
NET "LEDS<3>" LOC = AD26;
|
| 121 |
|
|
NET "LEDS<4>" LOC = G16;
|
| 122 |
|
|
NET "LEDS<5>" LOC = AD25;
|
| 123 |
|
|
NET "LEDS<6>" LOC = AD24;
|
| 124 |
|
|
NET "LEDS<7>" LOC = AE24;
|
| 125 |
|
|
|
| 126 |
|
|
#DIP Switches
|
| 127 |
|
|
NET "DIP<0>" LOC = U25;
|
| 128 |
|
|
NET "DIP<1>" LOC = AG27;
|
| 129 |
|
|
NET "DIP<2>" LOC = AF25;
|
| 130 |
|
|
NET "DIP<3>" LOC = AF26;
|
| 131 |
|
|
NET "DIP<4>" LOC = AE27;
|
| 132 |
|
|
NET "DIP<5>" LOC = AE26;
|
| 133 |
|
|
NET "DIP<6>" LOC = AC25;
|
| 134 |
|
|
NET "DIP<7>" LOC = AC24;
|