Do synchronous reset first, then on each rising clock edge...
Clock in each of two 8-bit values, one nibble
at a time (high to low).
Then clock out a 16-bit value, one byte (via result
) at a time (high to low).
After synchronous reset, expect result
output to be 0.
Set nibble
to a value of your choice, then pulse the clock.
Repeat 3 more times.
Then pulse the clock 1 more times, each time expecting to get a byte at the output result
.
# | Input | Output |
---|---|---|
0 | clock | result[0] |
1 | reset | result[1] |
2 | result[2] | |
3 | result[3] | |
4 | nibble[0] | result[4] |
5 | nibble[1] | result[5] |
6 | nibble[2] | result[6] |
7 | nibble[3] | result[7] |