Verilog-Based Automatic Bus Ticketing System: Absract

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 5

Verilog-based Automatic Bus Ticketing system

Absract --This paper offers a comprehensive synthesis, circuits advance quickly in recent years, particularly with
combining practical investigations, theoretical analyses, regard to PLG circuits. Additionally, the Verilog
and literature reviews to delve into the research of a bus Programming language includes built-in benefits including
automatic ticket-selling system using Verilog HDL. In the precise timing, process-independent design, flexibility, and
design of this bus ticketing system, the central goals are ease of use. Efficiency of the design can also be increased by
convenience, speed, and simplicity, all geared towards using the Verilog Programming language. Therefore, Verilog
optimizing time-saving for passengers during the ticket Programming language serves as the foundational language
purchasing process. The study commences with an for creating the bus's computerized ticketing system.
examination of the historical and global landscape of bus II. DESIGN PRINCIPLE
ticketing systems before delving into the core components
of such systems. To realize the design, Quartus II 13.1 A. Verilog HDL Language
development software is employed for schematic input. Verilog Hardware Description Language (HDL) is a
The resulting bus automatic ticket selling system language used to model and simulate digital electronic
comprises essential modules, including the ticket systems. It allows designers to describe the behavior and
selection module, coin calculation module, change structure of digital circuits and systems. Verilog supports
processing module, and display interface module. This both behavioral and structural modeling, is concise and
paper also encompasses simulations of these modules expressive, and is primarily used for simulation. It is well-
within the Quartus II 13.1 environment. suited for describing parallel operations in digital hardware,
Keywords- Verilog HDL, Ticket Selection, Coin supports hierarchical design, and is event-driven. Verilog
Calculation, Quartus II code can be divided into synthesizable and non-synthesizable
I. INTRODUCTION sections, and it has been standardized under IEEE 1364.
Officially known as the Pandit Nehru Bus Station but Various versions and extensions, such as SystemVerilog,
often shortened to PNBS, this bustling hub is India's largest have been developed to enhance its capabilities. Verilog is
and Asia's second-largest bus terminal. Nestled on the south widely used in digital design for FPGA and ASIC design,
side of Vijayawada and adjacent to the Krishna River, PNBS embedded system development, verification, and testing.
reigns supreme as the state's premier road transport connector, B. Quartus II Software
linking Andhra Pradesh's cities and towns with ease.
Quartus II is a software tool developed by Intel (formerly
The advancement of automatic ticketing systems in Altera) for designing, simulating, and programming Field-
urban buses is intrinsically linked to the development of the Programmable Gate Arrays (FPGAs) and Complex
road transport field. This progress fosters a reciprocal Programmable Logic Devices (CPLDs). This platform offers
relationship, where advancements in ticketing systems play a holistic integrated development environment (IDE) for
a crucial role in shaping road transport efficiency, and vice digital design, encompassing all stages—from design entry
versa. and simulation to synthesis, physical layout and routing,
timing analysis, and configuration. Quartus II also supports
Customers can purchase tickets, board buses, and leave
IP integration, offers debugging tools like SignalTap Logic
stations using the service system known as AFC (Automatic
Analyzer, and is compatible with a wide range of Intel FPGA
Fare Collection). It serves as a crucial benchmark for
and CPLD devices. It's widely used by digital designers for
assessing the quality of urban bus transportation. This is A
FPGA and CPLD development and comes with extensive
system that operates automatically, that combines automatic
documentation and support resources.
control and computer network connection. At the same time,
we have seen the science and technology of integrated
C. FPGA buy, use qua_1, qua_2 as the function. qua_1 denotes buying
one ticket, while qua_2 denotes buying two tickets.
It is a versatile semiconductor device that distinguishes
itself from traditional chip design methods. Unlike
conventional chip design, which is often confined to specific
research and technology domains, FPGA offers a unique
advantage. It allows for optimization and design
enhancements within a product's related technical fields by
leveraging a particular chip model.
FPGAs are no longer just niche chips for specialized
applications. They stand at the forefront of a paradigm shift,
where software and hardware converge and semi-custom
reigns supreme. It encompasses digital management modules,
embedded units, and various other components. Notably,
FPGA's versatility sets it apart from Application-Specific
Integrated Circuits (ASICs), as it continues to find
widespread utility, particularly in the realm of the
communication industry.
Fig .1.1. Selection Module
By conducting thorough market research and examining
global suppliers of FPGA-related products, coupled with a Module output: PATH denotes the selected line's output,
consideration of India's unique circumstances and its world- which is sent as input to the modules responsible for
leading enterprises, we can gain valuable insights into the processing, calculating amounts, and displaying information.
trends and directions of FPGA-related products' The total amount owed (COST) is entered into the processing
development. India's scientific and technological and balance calculation modules for computation,
advancements depend on this comprehensive analysis to Simultaneously, the system transmits the selected quantity
guide and drive its progress, ultimately elevating its global PIN to the display module for verification. This will be
technological standing. utilized in the computation of the appropriate recovery
amount. We'll take your fare (PRI), whip it through the
III. DESIGN CONTENT calculation and display machine, and show you the result.
This paper primarily focuses on the design of an B. Rupees Calculation Module
automated ticket-purchasing system that empowers
passengers to effortlessly acquire tickets through Module in: Initiate a system reset by pressing the RD
straightforward operations. This automatic ticketing system, button. Passenger interaction with this button triggers a
designed for effortless passenger experience, exclusively system reset. The core of a sequential logic circuit is the
accepts 10-rupees and 20-rupees notes. Its core architecture clock signal, or CLK (Clock). The signals of input 5 rupee
comprises four key modules: selection module, rupees are denoted by FIVE_IN, and those of input 10 rupee by
calculation module, return processing module and interface TEN_IN.
display module.
A ticket selection module's purpose is to offer clients
ride route choosing options, as the name would imply.
Passengers will insert money after the route is chosen.
Simultaneously, the data from both the money input
processing and route selection modules will be channeled to
the calculation module and displayed on the interface. The
return calculation module computes the money a client
should receive in return for their investment and as the
calculation module finishes its work, the interface module Fig.1.2. Rupees Calculation Module
jumps into action, displaying the results for the customer to The output of the module is represented by the letters
see. FIVE_OUT, TEN_OUT, and OUT, which stand for the ten
A. Ticket Selection Module digits, total, and the output, respectively, of the total quantity
of gold coins. This number goes to the return calculating
Module input: When pressed, the reset button (RD) can module to see how many rupees you get.
perform the function of zero clearing. The core of a
sequential logic circuit is the clock signal, or CLK (Clock). C. Return Processing Module
path_ 1 、 path_ 2. They are both effective and will Module in: Initiate a system reset by pressing the RD
realize the line selection function when one of them is button. Passenger interaction with this button triggers a
high-level effective. The No. 1 busline is 01, and the No. 2 system reset. Synchronized by the CLK signal, the passenger
busline is the route that the customer chooses (10). pri3, One proceeds to press the final confirmation button, or FINISH,
of the two, pri4 and pri5, is configured as the ticket after inserting their coin. The module function determines
price selection function at a high level. When choosing how whether to sell the ticket to the client upon customer
many tickets to
interaction, the signal transitions to a high state. (2)Selector: Module 6 counter is scanned by the nixie
Simultaneously, a function of change calculation will be tube. Based on the input that the counter sent. The selector
executed. To determine if a ticket is issued, PATH_IN is used. acts as a gatekeeper, determining which data will be
Which ticket to sell is determined by PRI_ IN. The total presented as output.
amount payable is entered as COST_IN, while the entire
(3)Decoder: The function of the seven-segment nixie tube
amount invested is entered as COIN_IN.
is indicated. To display the necessary number, it converts
a four-bit binary code to a seven-bit binary code.
E. Top Level File

Fig.1.3. Return Processing Module


Module output: CHANGE output pin relays the result,
prompting the display module to update its indication on how
much should be given to the passengers. According to
VALID_TIC[5:0], six distinct ticket types are associated
with the illumination of six individual light-emitting diodes,
allowing for precise identification of each ticket issue. The
primary function of DISP_TIC is to regulate whether the
circuit's diode emits light or not. When the LED illuminates,
it indicates that the customer needs to receive change. If the
LED is in the off state, no change operation is required. Fig.1.5. Top level File

D. Display Interface Module The coin calculation, change processing, ticket selection, and
display interface modules make up this top level file. It is the
The 6-out-of-1 selector, decoder, and module 6 counter top-level file for the display interface, coin computation,
make up the display function module. The primary function change processing, and ticket selection.
is to clearly illustrate the chosen path, corresponding ticket
price per unit, number of tickets acquired, overall expense IV.Design Results
incurred, and any recoverable amount.
A. Selection Module Simulation
Following is the selection module simulation diagram.
The priority,path and quantity pins are logical at high level,
as shown by the simulation diagram, the system
acknowledges that passengers have chosen line 1, indicating
a ticket price of 10 rupees for two tickets. The anticipated
outcomes are attained.

Fig.1.4. Display Interface Module


Fig1.6. Simulated Waveform
(1) Module 6: This design implements a clock-driven three-
bit binary counter, that represents the entire 0–5 counting B. Rupees calculation and processing module simulation
process, ranging from 000 to 101. Reaching a count of 101
Analysing the simulation diagram reveals that the high
plus 1 exceeds the counter's capacity, resulting in a carry
state configuration of the designated denomination pins
signal and a complete reset to zero. After scanning the nixie
translates to an investment of 15 rupees. The simulation was
tube, each of the six data from the selector is chosen and
successful and yields the anticipated results
produces output separately.
.
It is possible to determine that the design is successful by
analyzing the simulation diagram, which shows that the six
data points will likewise be output in accordance with
changes in the selection signal.
V. Conclusions
Verilog HDL's dominance as a language for hardware
design is further solidified by its role in this bus ticketing
system, alongside the robust capabilities of the Quartus II
13.1 (64- bit) platform. This union represents the cutting
edge of design and development.

Fig1.7. Simulated Waveform This design is an automated ticketing system for buss. The
system automates the entirety of the ticket purchasing
C. Rupees calculation and return processing module process, encompassing path selection, path display, payment
The simulation indicates line 2 as the chosen bus path, a processing, return dispensing, and ticket printing. We can
5-rupee ticket price, and a 10-rupee payment. This look into the real circumstances surrounding the bus ticket
corresponds to the fifth ticket type, prompting the system to vending machine as part of the graduation comprehensive
update the fare to 5 rupees upon receiving the full payment. training, which gives us a better understanding and
assessment of the real situation of the design. We can also
identify individuals who will not be able to conduct online
electronic transactions conveniently given the real situation,
or who will not be able to conduct online transactions under
unforeseen circumstances like a dead phone or a limited
network.

VI. REFERENCES

[1] K. S. Gill, A. Sharma, V. Anand and S. Gupta,


Fig1.8. Simulated Waveform
"Automated Fare Collection System for Public
Transport using Intelligent IoT based System," 2023
International Conference on Artificial Intelligence and
D. Display interface module Knowledge Discovery in Concurrent Engineering
(ICECONF), Chennai, India, 2023, pp. 1-7, doi:
Validating the design against the initial specifications is
10.1109/ICECONF57129.2023.10083627.
achieved by examining the simulation diagram's outputs. The
observed range of hexadecimal values (0 to 5) generated in
[2] Y. Chen, Y. Zhao and K. L. Tsui, "Clustering-based
response to the clock signal input verifies our design's
Travel Pattern Recognition in Rail Transportation
accuracy and consistency.
System Using Automated Fare Collection Data," 2019
Prognostics and System Health Management
Conference (PHM-Qingdao), Qingdao, China, 2019, pp.
1-7, doi: 10.1109/PHM-Qingdao46334.2019.8943009.

[3] Z. Liu, S. Liu and T. Chen, "Metro automatic fare


collection system safety and security," 2017
Fig1.9. Simulated Waveform International Conference on Electromagnetics in
Advanced Applications (ICEAA), Verona, Italy, 2017,
E. 6 out of 1 selector pp. 604-607, doi: 10.1109/ICEAA.2017.8065318.

[4] A. P. Isern-Deyà, A. Vives-Guasch, M. Mut-Puigserver,


M. Payeras-Capellà and J. Castellà-Roca, "A Secure
Automatic Fare Collection System for Time-Based or
Distance-Based Services with Revocable Anonymity for
Users," in The Computer Journal, vol. 56, no. 10, pp.
1198-1215, Oct. 2013, doi: 10.1093/comjnl/bxs033.

Fig1.10. Simulated Waveform


5 D. G. Chandra, R. Prakash and S. Lamdharia, "Mobile
Ticketing System for Automatic Fare Collection
Model for Public Transport," 2013
5th International Conference and Computational
Intelligence and Communication Networks,
Mathura, India, 2013, pp. 600-603, doi:
10.1109/CICN.2013.131.

6 Q. TU, X. ZHANG and Y. ZHANG, "Evaluation


Method of Passenger Pressure State in Metro Hub
based on AFC Data," 2019 IEEE
Intelligent Transportation Systems
Conference (ITSC), Auckland, New Zealand,
2019, pp. 86-91, doi: 10.1109/ITSC.2019.8917339.

7 N. J. Meyerhoff and J. S. Koziol, "Reliability Of Fare


Collection Hardware In Subways," Annual
Reliability and Maintainability Symposium,
1984. Proceedings., San Francisco,
CA, USA, 1984, pp. 33-38, doi:
10.1109/RAMS.1984.764259.

8 Z. Rong, C. Xiangxian, T. Zhifeng and B. Jidong,


"Design of Bill Acceptor for Automatic Fare
Collecion of Rail Transit," 2014 Enterprise
Systems Conference, Shanghai,
China, 2014, pp. 179-183, doi:
10.1109/ES.2014.27.

9 R. Sati, V. Mishra and G. Verma, "Simulation of


Vending Machine Design using Verilog HDL,"
2022 2nd Asian Conference on
Innovation in Technology (ASIANCON),
Ravet, India, 2022, pp. 1-5, doi:
10.1109/ASIANCON55314.2022.9909003.

[10] S. K, N. P, D. M, R. J, S. M and M. M, "Depiction of


FPGA Based Vending Machine Using Mealy Model,"
2022 Third International Conference on Smart
Technologies in Computing, Electrical and Electronics
(ICSTCEE), Bengaluru, India, 2022, pp. 1-5, doi:
10.1109/ICSTCEE56972.2022.10099962.

You might also like