热度 8
2015-11-20 14:45
3340 次阅读|
0 个评论
Constraint RGMII Interface of Triple Speed Ethernet with the External PHY Delay Feature The objective of this design example is to showcase the way to constraint the TSE_RGMII. This design example is only applicable when the delay feature (90 degree shift) of TX_CLK and RX_CLK of external PHY are turned on. It can run on 3 different speeds which are 10 MHz, 100 MHz, and 1000 MHz. Assumption is made that the user is familiar with the Triple Speed Ethernet intellectual property (IP) Core, ALTDDIO, ALTPLL, TimeQuest and Static Timing Analysis, and double data rate (DDR) source synchronous concept. How to Constraint Select the method of interface constraint: system centric method or FPGA centric method. Different method requires different formula to calculate the delay value in the set_input_delay and set_output_delay command This design example use system centric method Decide whether to turn on or turn off the delay feature (±90 degree shift) of external PHY as it will determine the type of alignment between the clock and data. 90 degree shift - center aligned No shift - edge aligned This design example is applicable to delay feature of TX and RX of external PHY are turned on (90 degree shift) only Determine the desired launch and latch relationship. There are 4 types of launch and latch relationship.They are Rise-Rise (RR), Rise-Fall (RF), Fall-Rise (FR) and Fall-Fall (FF) relationship RGMII specification state that the LSB of data will be sending out at the rising edge first and MSB of data is sent out followed by the falling edge The design of TSE with RGMII interface will capture the data at the rising edge first then followed by falling edge. It implies that the clock needs to be shifted +90 degree instead of -90 degree Desired setup launch and latch relationship (Arrow in red): RR and FF Desired hold launch and latch relationhip (Arrow in blue): FR and RF Figure 2. Lauch Clock and Latch Clock Relationship Constraint the RGMII Interface.The Synopsys Design Constraints (SDC) is based on the design and application.However, there are some main SDC needed for RGMII interface. TX create_clock the clock that latch the data inside the FPGA prior to transmit to external PHY create_generated_clock: the clock with 90 degree phase shift that latch the data at the external PHY set_false_path: It is unwanted relationship not to be analyzed in timing analysis. In this design example, unwanted relationship for the setup is RF and FR while unwanted relationship for the hold is RR and FF set_false_path -fall_from -rise_to -setup set_false_path -rise_from -fall_to -setup set_false_path -rise_from -rise_to -hold set_false_path -fall_from -fall_to -hold set_output_delay set_output_delay -clock output_clock\ -max \ \ -add_delay set_output_delay -clock output_clock\ -max \ \ -clock_fall \ -add_delay set_output_delay -clock output_clock \ -min \ \ -add_delay set_output_delay -clock output_clock \ -min \ \ -clock_fall \ -add_delay TSE_RGMII RX create_clock: a virtual clock that latch the data inside the external PHY prior to transmit to the FPGA create _clock: the clock with 90 degree phase shift that latch the data inside the FPGA set_false_path: It is unwanted relationship not to be analyzed in timing analysis. In this design example, unwanted relationship for the setup is RF and FR while unwanted relationship for the hold is RR and FF set_false_path -fall_from -rise_to -setup set_false_path -rise_from -fall_to -setup set_false_path -rise_from -rise_to -hold set_false_path -fall_from -fall_to -hold How to Verify There are a few reports to checked in order to verify the source synchronous constraint is constrained properly Clock Report Check on the 3 clock frequency (125 MHz , 25 MHz, and 2.5 MHz) and its phase Core TX clock (FPGA): 125 MHz, 25 MHz, and 2.5 MHz RGMII_TX_Clock (external PHY): 125 MHz +90º, 25 MHz +90º, and 2.5 MHz +90º RGMII_RX_Clock (FPGA): 125 MHz +90º, 25 MHz +90º, and 2.5 MHz +90º RGMII_RX_Virtual_Clock (external PHY) : 125 MHz, 25 MHz, and 2.5 MHz Clock Transfer Report Check all the relationship on the setup and hold launch-latch relationship of RGMII interface for clock transfer Desired Setup: RR and FF Desired Hold: FR and RF All I/O Timing Report Check if there is any failing path and launch-latch relationship according to the desired setup and hold launch-latch relationship Input to register for setup and hold Register to output for setup and 转载:https://www.altera.com/support/support-resources/design-examples/intellectual-property/exm-tse-rgmii-phy.html