Professional Documents
Culture Documents
Exp 13
Exp 13
NO:13
DESIGN AND IMPLEMENTATION OF COUNTERS USING 7 SEGMENT
DATE: DISPLAY IN FPGA
Aim
To design, simulate and implement counters using 7 segment display in FPGA.
Software Required
Vivado 2014.4
Hardware Required
Nexys A7: FPGA Trainer Board
Theory
A 7-segment display in an FPGA involves combining the concepts of counters and 7-segment
display decoding to create a functional and visually appealing display of count values. Here are the key
theoretical aspects:
Counters:
Counters are sequential circuits that generate a sequence of binary values based on a clock signal.
In the context of FPGA implementation, counters are typically implemented as finite state machines (FSMs)
with flip-flops and combinational logic. Counters can be designed to count up (increment) or count down
(decrement) based on specific triggering events, such as clock pulses or control signals.
Segment Patterns:
Each digit or character on a 7-segment display can be represented by activating specific segments.
For example, the number "0" is displayed by activating segments a, b, c, d, e, f but leaving segment g off.
Different digits and characters have different segment activation patterns. These patterns can be stored in a
lookup table or implemented as combinational logic to enable the correct segments for each count value.
Multiplexing:
In cases where multiple 7-segment displays are used, multiplexing is a technique employed to share
limited resources (pins) of the FPGA. It involves rapidly switching between different displays and
displaying their respective count values one at a time. By multiplexing, it appears as if all the displays are
active simultaneously. Multiplexing can be achieved using a time-multiplexing approach, where each
display is activated for a short period and then switched to the next display.
Counters
Block Diagram
1. Goto project manager right click on Simulation SourcesSelect Add or create simulation
sources,
2. Click on Create File Select your file type as Verilog
3. Enter your “file name” and click Finish.,
4. Goto project manager and click your verilog file under Simulation Sources.,
5. Enter your program and save file.,
6. Click on”run synthesis”Running synthesis.,
1. After successful synthesis completion, close the pop-up window and select Simulation Run
Behavioural Simulation is enough to see output waveform If we run through testbench program.
2. Else After the Run Behavioral Simulation, Force the value for inputs by Force Constant option
and save the waveform
3. Run the simulation by clicking on Run for amount of time previously set Output of simulation is
verified with the help of waveform
Steps for Implementation
Output
Result
Thus, the simulation and implementation of counters using 7 segment display in FPGA is verified.
Practice Question