Shift Register (SISO)
intermediate · sequential · 125 XP
Sign in to write your solution, run it in the simulator and submit it for grading.
Sign in or create a free account →Problem
Shift Register — SISO (Serial-In Serial-Out)
A 4-bit SISO shift register. Data enters one bit at a time from `si` and exits one bit at a time from `so`.
On every `posedge clk`:
- The register shifts left: `reg[3:1] <= reg[2:0]`
- New data enters at LSB: `reg[0] <= si`
- Serial output: `so = reg[3]` (MSB leaves first)
**Interface**
| Port | Direction | Description |
|-------|-----------|---------------------------|
| `clk`| input | Clock |
| `rst`| input | Synchronous reset |
| `si` | input | Serial input |
| `so` | output | Serial output (MSB first) |
**Use case:** UART transmit, SPI interfaces, pipeline delay lines.
After loading 4 bits, the first bit appears at `so` after 4 clock cycles.
Constraints
- 4-bit internal register.
- Shift direction: si enters at bit 0, so exits from bit 3.
- Use non-blocking assignments (<=).
Examples
Input: Send 1,0,1,1 serially (LSB first)
Output: so outputs 1,0,1,1 four cycles later
Common questions
- What does the Shift Register (SISO) problem ask you to build?
- Shift Register — SISO (Serial-In Serial-Out) A 4-bit SISO shift register. Data enters one bit at a time from `si` and exits one bit at a time from `so`.
- What constraints does Shift Register (SISO) have?
- 4-bit internal register.; Shift direction: si enters at bit 0, so exits from bit 3.; Use non-blocking assignments (<=).
- What is an example input and output for Shift Register (SISO)?
- Input Send 1,0,1,1 serially (LSB first) gives output so outputs 1,0,1,1 four cycles later.
- Which Verilog concepts does Shift Register (SISO) practise?
- sequential, shift-register, SISO, serial.