Home › Practice › RTL Design › 8-bit serial-in, parallel-out register
8-bit serial-in, parallel-out register
MediumRTLshift register
Collect serial bits into a byte and flag when a full byte has arrived.
- On each rising edge,
qshifts left by one anddinenters atq[0]. The first bit received ends up atq[7]after 8 bits. validis a registered output: it is 1 for one cycle right after the edge that sampled every 8th bit (bits 8, 16, 24 and so on, counted from reset), and 0 otherwise. In that cycleqholds the full byte.rstis synchronous, active-high:qbecomes 0,validbecomes 0, and the bit count starts again from 0.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.