/* stretch.s */
/*************************************************************************
stretch()
**************************************************************************
Inputs: in(0), the data to be stretched
in(1), a clock (optional)
Outputs: y, the stretched data
Parameters: s, the stretch factor
**************************************************************************
This star stretches the incoming data. If the paramater s is 0 then the
data is clocked by the rising edge of the second input. Else, the data
is stretched by the fixed factor of s. Each case is shown below.
s = 0:
x: 1 2 3 4 5 6 7 8 9
clk: 110110101011001100110110110
y: 111222334455556666777888999
s > 3:
x: 1 2 3 4 5 6 7 8 9
y: 111222333444555666777888999
stretch
This star stretches the incoming data. If the paramater s is 0 then the
data is clocked by the rising edge of the second input. Else, the data
is stretched by the fixed factor of s. Each case is shown below.
s = 0:
x: 1 2 3 4 5 6 7 8 9
clk: 110110101011001100110110110
y: 111222334455556666777888999
s > 3:
x: 1 2 3 4 5 6 7 8 9
y: 111222333444555666777888999
Programmer: Prayson W. Pate
Date: June 1, 1987
Modified: September 2, 1987
September 14, 1987
October 6, 1987
March 29, 1988
*/