4-bit Pseudo Random Number Generator using Verilog on Basys 3 FPGA
This project implements a 4-bit pseudo-random number generator (PRNG) on the Basys 3 FPGA board using Verilog. The PRNG is designed using a Linear Feedback Shift Register (LFSR) with a tapped XOR feedback mechanism.
Additionally, the binary output of the PRNG is converted to decimal and displayed on the 7-segment display built into the Basys 3 board.
- FPGA Board: Basys 3
- Language: Verilog
- Design Tool: Xilinx Vivado 2024.2
βββ src/ # Verilog source files (prng, seven_segment_display, bin_to_bcd, top_module)
βββ constraints/ # XDC file with pin mappings for Basys 3
βββ tb/ # Testbenches for simulation
βββ README.md # Project documentation
1.Open Xilinx Vivado 2024.2
2.Create a new project and add the files from the src/ and constraints/ folders.
3.Set the target board to Basys 3.
4.Run Synthesis β Implementation β Bitstream Generation
5.Program the FPGA using Hardware Manager
1.Use Vivadoβs built-in simulator
2.Add the tb/ testbenches
3.Simulate the design and verify waveform output
Thamaraikannan T
Project completed as part of academic learning on FPGA/Verilog using Basys 3.
This project is open-source and available under the MIT License.