You are on page 1of 7

DIGITAL LOGIC DESIGN LAB [Date]

SUBMITTED BY:
ANAS YUSUF (FA22-BEE-136)
AMIN QURESHI (FA22-BEE-135)
ARIJ NIAZ (FA22-BEE-139)

SUBMITTED TO:
SIR NOMAN AHMED

DATE OF SUBMISSION:
20TH MAY, 2023

DIGITAL LOGIC
DESIGN LAB
Project Proposal
DIGITAL LOGIC DESIGN LAB [Date]

Simple Voting Machine Using Verilog

OBJECTIVES:-
IMPLEMENT A SIMPLE VOTING MACHINE WITH 2 MODES:
 MODE 1 --- VOTING
 MODE 2 --- TALLYING VOTES
This voting machine is going to have two modes, the first one is a voting mode in which the votes will be
cast for the different candidates and the second one is the telling mode in which the votes accumulated by
every candidate can be displayed.

Softwares:-

 EDAplayground
 XILINX

This program was primarily written using EDAplayground1 which is a web-based ide2 along with some rtl3
images from Xilinx.

MODULES:-

 BUTTON CONTROL
 MODE CONTROL
 VOTE LOGGER
 VOTING MACHINE

Button control, Mode control and Vote logger these three modules are combined to create the voting
machine module which is ultimately what we are implementing.

 Button Control

There are certain parameters that we must keep in mind for instance for the button control module. A
button has to be pressed for a sufficient amount of time in order for the vote to be logged. It cannot simply
start logging the votes when the second time a button is pressed otherwise you can simply start logging
votes by repeatedly pressing the button which will allow multiple votes to be cast on the other hand once
the button has been pressed for a sufficient amount of time and the vote has been logged it must not log
any votes while the button is still pressed.

 Vote Logger

the vote logger module will tally the total number of votes that have been given to each candidate. It also
resets its value every time a new voting operation is started.
DIGITAL LOGIC DESIGN LAB [Date]

 Mode Control

For voting mode LEDS light up for a second to indicate that vote has been cast. For tally mode the LEDS
light up in binary numbers to indicate the number of votes received by the candidate.

Flow Chart:

EXPLANATION:
The Electronic Voting Machine is first in an idle state and then the button is pressed we will check which
mode the machine is in if it is in mode 0 it will check has the button been pressed for a sufficient amount of
time if yes then vote is logged and the machine returns to its idle state if not then it simply returns to idle
state with no vote to be logged if it is in mode 1 it will display the vote on the LEDS then return to the idle
state.
DIGITAL LOGIC DESIGN LAB [Date]

1. EDA Playground offers a user-friendly interface that allows users to write and edit code, run
simulations, and view waveform results. It supports popular EDA tools and simulators, allowing users
to select their preferred toolset for simulation and verification.

2. IDE is Integrated Development Environment. It is a software application that provides comprehensive


tools and features for software development, including code editing, debugging, and building programs.

3. RTL is Register Transfer Level. It is a design abstraction level used in digital circuit design, where the
behavior of a circuit is described in terms of the flow of data between registers. RTL is commonly used
in hardware description languages (HDLs) like Verilog and VHDL for designing digital systems.
DIGITAL LOGIC DESIGN LAB [Date]

Intelligent Traffic Light Controller

Introduction:
The ever increasing vehicle-population has had its impact on the traffic-control systems.
Initially, authorities would appoint traffic wardens to the signals to avoid accidents and traffic
violations. As it turns out, appointing a traffic warden for every signal in the city may not be
feasible. Perhaps, this calls for modern methods of traffic control. Our project provides a
solution to this problem by creating an automated traffic signal (although implemented before
too) that sets on for a fixed duration and also takes in account the condition of traffic overflow.
Moreover, it also provides a mechanism for check and balance of traffic violations at an
intersection.

Software:

 Xilinx

 verilog

Working Principle:
Intelligent Traffic Light Controller is a completely automated system for controlling traffic
flow at an intersection. The basic purpose of this controller is to direct the traffic flow from one
direction at any given time by providing a green light signal and stopping the traffic from other
three directions through a red light signal. After a specific interval of time, controller shifts the
green light signal to another direction and the cycle continues.
DIGITAL LOGIC DESIGN LAB [Date]

 The main road’s light are always green for the major traffic to pass
 The main road’s lights turn red only when there is a car on either side of the side road for a period of
time.
 When detector detect the vehicles, only then the lights on the side road turn from red > green while the
main road’s lights turn from green > yellow > red.
 After the given interval of time, lights on the main road turns to red > yellow > green and the side road
turns from green > red.
 In the timer part, there are three things one is the short time pulse and the long time pulse and the last
is a response the start the timer signal.

Block Diagram:
DIGITAL LOGIC DESIGN LAB [Date]

You might also like