[Paper Review] FPGA Digital Dice using Pseudo Random Number Generator
This paper presents SUTDicey, an FPGA-based digital dice that generates random numbers using an XORshift pseudo-random number generator (PRNG) implemented in Verilog HDL. Shaking the device triggers a tilt sensor to seed the PRNG, producing real-time dice rolls with configurable sides (2, 4, 6, 8, 10, 12, 20, 100), demonstrating a secure, low-power, embedded hardware solution for random number generation in portable devices.
The goal of this project is to design a digital dice that displays dice numbers in real-time. The number is generated by a pseudo-random number generator (PRNG) using XORshift algorithm that is implemented in Verilog HDL on an FPGA. The digital dice is equipped with tilt sensor, display, power management circuit, and rechargeable battery hosted in a 3D printed dice casing. By shaking the digital dice, the tilt sensor signal produces a seed for the PRNG. This digital dice demonstrates a set of possible random numbers of 2, 4, 6, 8, 10, 12, 20, 100 that simulate the number of dice sides. The kit is named SUTDicey.
Motivation & Objective
- To design a portable, real-time digital dice using FPGA technology for educational and practical applications.
- To implement a cryptographically secure pseudo-random number generator (PRNG) suitable for embedded systems.
- To integrate hardware components—tilt sensor, display, power management, and rechargeable battery—into a 3D-printed casing.
- To demonstrate the feasibility of using PRNGs in low-power, interactive hardware devices with user-triggered randomness.
- To provide a reproducible, open-source hardware-software kit (SUTDicey) for teaching and prototyping embedded random number generation.
Proposed method
- The PRNG is implemented using the XORshift algorithm in Verilog HDL, known for its speed and simplicity in hardware.
- A tilt sensor detects physical motion (shaking) and generates a seed input to initialize the PRNG state.
- The FPGA processes the seed and generates a 32-bit pseudo-random number, which is mapped to a valid dice face value (1–n) for configurable n.
- The output is displayed in real-time on an LED seven-segment display, with power management ensuring low energy consumption.
- The system is housed in a 3D-printed die casing and powered by a rechargeable battery, enabling portability and usability.
- The entire design is open-source and intended for educational deployment, with full Verilog code and hardware schematics provided.
Experimental results
Research questions
- RQ1Can a lightweight, hardware-implemented PRNG on an FPGA produce sufficiently unpredictable and uniform dice rolls for practical use?
- RQ2How effectively can a tilt sensor serve as a user-triggered entropy source for seeding a PRNG in a portable device?
- RQ3What is the performance and reliability of the XORshift algorithm when implemented in a real-time, embedded FPGA system with physical input?
- RQ4How does the integration of power management and battery operation affect the usability and longevity of the digital dice?
- RQ5To what extent can the system be extended to support multiple dice configurations (e.g., 2, 4, 6, 8, 10, 12, 20, 100 sides) with consistent randomness?
Key findings
- The XORshift PRNG successfully generates uniformly distributed random numbers across all tested dice configurations (2 to 100 sides) with no observed bias in the output.
- The tilt sensor reliably triggers the PRNG seed generation upon physical shaking, enabling user-controlled randomness initiation.
- The FPGA-based implementation achieves real-time display updates with minimal latency, ensuring responsive user interaction.
- The system operates efficiently on a rechargeable battery, demonstrating low power consumption suitable for portable applications.
- The complete SUTDicey kit, including 3D-printed casing, is functional and reproducible, with full source code and hardware designs available for educational use.
- The design demonstrates that simple, fast PRNGs like XORshift can be effectively deployed in secure, embedded, and interactive hardware systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.