robertferanec , 01-21-2018, 09:34 PM
There is no general rule - you need to follow design guide. Each chip is build differently and sometimes they may include some length matching stuff inside the chip itself (e.g. I use chips where clock had to be longest, but I have also used chips where CMD/CTL/ADDR signals could be routed around clock).
RGMII layout may depend on version of RGMII which the chip is using (if I remember right, older version may require length adjustment on PCB, other version is doing this on silicon). Also, sometimes you can tune RGMII delay inside the chip (there are some registers). You can find some recommendations on google (e.g. try google for "rgmii layout guidelines"), but ideally is to follow design guide for your specific chip.
Generally, if I do length matching I almost always try to make the CLK the longest one in the group (unless it is otherwise specified).