Top Banner
LUCKY SEVEN USING 7 SEGMENT DISPLAY IN FPGA By: Kanika Arora Dhruv Agarwal Arpit Narula
16

Lucky seven game using 7 segment display in fpga

Apr 16, 2017

Download

Education

Dhruv Agarwal
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Lucky seven game using 7 segment display in fpga

LUCKY SEVEN USING 7

SEGMENT DISPLAY IN FPGA

By:•Kanika Arora•Dhruv Agarwal•Arpit Narula

Page 2: Lucky seven game using 7 segment display in fpga

INTRODUCTION A field-programmable gate

array (FPGA) is an integrated circuit designed to be configured by a customer or a designer after manufacturing .

The FPGA configuration is generally specified using a hardware description language(HDL), similar to that used for an application-specific integrated circuit(ASIC). 

Page 3: Lucky seven game using 7 segment display in fpga

COMPONENTS OF FGPA: FPGA(Field Programmable Gate Arrays)

have large sources of logic gates and ROM memory. The logic units used in FPGA are typically implemented using :

LUTs NAND gates Transistors Multiplexer

Page 4: Lucky seven game using 7 segment display in fpga

7 Segment Display: A seven-segment display (SSD),

or seven-segment indicator, is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix displays.

Applications: Seven-segment displays are widely used

in digital clocks, electronic meters, basic calculators, and other electronic devices that display numerical information.

Page 5: Lucky seven game using 7 segment display in fpga

CONCEPT: The seven elements of

the display can be lit in different combinations to represent the arabic numerals.

The segments of a 7-segment display are referred to by the letters A to G, where the eighth segment is used for the display of non-integer numbers.

Page 6: Lucky seven game using 7 segment display in fpga

Implemenation : Seven-segment

displays may use a liquid crystal display(LCD), a light-emitting diode(LED) for each segment, or other light-generating or controlling techniques such as cold cathode gas discharge, vacuum fluorescent, incandescent filaments, and others.

Page 7: Lucky seven game using 7 segment display in fpga

BLOCK DIAGRAM :

FPGA BOARD

CLOCK SOURCE

SEVEN SEGMENT DISPLAY

4 SLIDE SWITCHE

S

PUSH BUTTON LED

Page 8: Lucky seven game using 7 segment display in fpga

The above block diagram consist of 2 outputs and 2 inputs.

Firstly a delay and count is given by the FPGA clock which generates increasing numbers on the seven segment displays. Inputs: 4 Slide Switches and a Push Button.

The 4 slide switches are used to stop the counter of each seven segment display, that is, as soon as we switch on the switch, the number on the corresponding seven segment freezes.

The push button is used to reset the counter, as the button is pressed,

all the four seven segment displays go back to zero and start over again afresh. Outputs: 4 Seven Segment Display and all LEDs.

The seven segment displays are used throughout the project to display the numbers on them in increasing fashion or freeze state. The main purpose of using LEDs in this project is to indicate that the player wins the game as it will glow only when all the switches are high as well as the numbers on all the seven segment displays are identical.

Page 9: Lucky seven game using 7 segment display in fpga

HARDWARE The Nexys 3 Spartan 6 FPGA board consists of five push

buttons of which we make use of the central push button for the reset purpose. We make use of all 4 seven segment LED displays available on the board and also 4 out of 8 slide switches are used. This board has 8 LED and we use all of them to signify the winning situation. The FPGA board connects to the Xilinx software in computer with the help of a USB cable connected to the USB port on the board . This USB cable supplies power to the FPGA board and is also used to implement the program code on the hardware. The main component of the hardware is the application based integrated circuit (ASIC) named as Nexys 3 Spartan-6 which works at the frequency of 50 MHz .

Page 10: Lucky seven game using 7 segment display in fpga
Page 11: Lucky seven game using 7 segment display in fpga

CONNECTION TABLE:

Page 12: Lucky seven game using 7 segment display in fpga

RTL MODEL :

Page 13: Lucky seven game using 7 segment display in fpga

BEHAVORIAL MODEL:

Page 14: Lucky seven game using 7 segment display in fpga

SIMULATED OUTPUT :

Page 15: Lucky seven game using 7 segment display in fpga

APPLICATION: This implementation of lucky 7 can be used in casino

gaming instead of the game slots. It can also be used in the restaurants for the order number machines which would look fascinating to display a customer’s order number while glowing LED.

RESULT After the implementation of a code written in Xilinx based on

the sequence of the block diagram, the numbers run from 0 to 9 on all the four seven segment display and are controlled by individual switches. When the switch is turned on the number on the corresponding seven segment freezes. When all the four switches are on the when the number frozen on the four seven segments are same, the LED lights on the Spartan 6 board glow, representing the winning position.

Page 16: Lucky seven game using 7 segment display in fpga

THANK YOU !!