Home › Practice › RTL Design › 8-bit parallel-in, serial-out register
8-bit parallel-in, serial-out register
MediumRTLshift register
Load a byte, then send it out one bit per cycle, MSB first.
rstis synchronous, active-high: everything clears,sout=0,busy=0.- If
load=1on a rising edge, the register capturesdand a count of 8 starts.loadwins even while busy (it restarts). - While the count is not 0, each rising edge shifts the register left by one (a 0 enters at the bottom) and the count goes down by 1.
soutis the top bit of the register.busyis 1 while the count is not 0.
Example: load d=10110001 at one edge. Then sout shows 1 0 1 1 0 0 0 1 in the next 8 cycles with busy=1, and then sout=0, busy=0.
No install and no sign-up needed. You write your answer in the editor and Nishkam checks it.