#! /bin/sh
unit=$1

if [ "$1" = "-u" ] ; then
	unit=$2
fi

if [ "$unit" = ""  ] ; then 
	unit=0
fi
# loading bitfiles
mezzload -u $unit

# set up 10g channel
pdb -u $unit -f threep_10g_exttest.pdb
threep_setup -u $unit -m0 10g

# check
chkprbs15 -u $unit -c 0 -n 1 -b 1M -i -t -l 2000 -s 2

# or set register ee to 4 for prbs7 and check with:
# chkprbs7 -u $unit -c 0 -n 1 -i -t -l 2000 -s 2

