.subckt Source_PRBS7 out gnd
*......LFSR prbs7 pattern.......
V1 prbs7 0 LFSR ( '-vid' vid 0 'trise' 'tfall' '1/ui' 'pow(2,7)-1' [7,6] rout=50)

RS1 sw7 prbs7 '1g*(TIME <  delay)'
RS2 sw7 0     '1g*(TIME >= delay)'

.ic sw7=0
RL sw7 0 50

ei1 net10 0 sw7 0 1
ei2 net11 0 sw7 0 -1

e1 out 0 net10 net11 1

.ends Source_PRBS7
** End of subcircuit definition.

