61 Dice roll

61 : 0b 000 111 101 : Dice roll

Select Project 1 2 3 4 5 6 7 8 9 ON SW2
  • Author: Tholin
  • Description: Will roll a random number from 1 - 6 on the 7-segment display, like a dice.
  • GitHub repository
  • Most recent GDS build
  • HDL project
  • Extra docs
  • Clock: 6000 Hz
  • External hardware: A 7-segment-display. The one on-board the PCB will work.

How it works

Contains a LSFR for random numbers, that constantly updates no matter if the dice is rolling or not. Pressing the ’ROLL’ button will play an animation of random numbers cycling on the display, until settling on a number after a few seconds. The decimal point will light up when its done rolling.

How to test

Reset, then pulse ’ROLL’ to roll the dice as many time as you like.

IO

# Input Output
0 CLK segment a
1 RST segment b
2 ROLL segment c
3 NC segment d
4 NC segment e
5 NC segment f
6 NC segment g
7 NC decimal point