
This project implements an 8-bit Linear Feedback Shift Register (LFSR) to generate pseudo-random 8-bit sequences using Verilog HDL.
The design consists of an 8-bit shift register and XOR feedback logic. A non-zero initial seed is loaded into the register. On every active clock edge, when the enable signal is asserted, the register shifts its contents and inserts a new feedback bit generated using the selected XOR feedback taps.
The LFSR generates a deterministic sequence of pseudo-random values. With the selected feedback configuration and a non-zero seed, it can generate up to 255 unique non-zero states before repeating.
The design can be tested using the Tiny Tapeout test environment or a Cocotb-based simulation.
The following operations are verified:
The functional design is verified using Cocotb, Python and Icarus Verilog.
No external hardware is required.
The design is implemented entirely using digital logic and is intended to run as a standalone Tiny Tapeout ASIC design using the SKY130 standard-cell technology.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | SEED_0 | LFSR_0 | LOAD |
| 1 | SEED_1 | LFSR_1 | RUN |
| 2 | SEED_2 | LFSR_2 | AUTO_EN |
| 3 | SEED_3 | LFSR_3 | RESEED |
| 4 | SEED_4 | LFSR_4 | N_SEL_0 |
| 5 | SEED_5 | LFSR_5 | N_SEL_1 |
| 6 | SEED_6 | LFSR_6 | N_SEL_2 |
| 7 | SEED_7 | LFSR_7 | SEED_SRC |