Place ground pins between pairs where possible and convenient. Especially use ground pins to separate TTL/CMOS signals from LVDS signals. Regarding ground end pins, do not use end pins for high-speed signals, if possible, as they offer less balance. Ground or terminate unused pins, or both if your system design permits.