Xilinx Based Real Time Clock: Project Report
Xilinx Based Real Time Clock: Project Report
PROJECT REPORT
SUBMITTED BY
Nishtha (22001015042)
Muskan (22001015038)
• Certificate
• Introduction
• Technology used
1. Software Requirements
• Screenshots
1. Initiating the project
2. Home webpage
3. Open file
• References
DECLARATION
We hereby certify that the work which is being presented in this project report
entitled “Xilinx Based Real Time Project”, in partial fulfilment of requirements for
the 4th semester of degree of BACHELOR OF TECHNOLOGY in Electronics And
Computer Engineering, submitted to the Department of electronics Engineering,
Faculty of Engineering and Technology, J.C. Bose University of Science and
Technology, YMCA, Faridabad, Haryana-121006 is an authentic record of our
work carried out during period from January 2024 to June 2024 under the
supervision
of Dr. Nitin Sachdeva. The content presented in this project report, we have
not submitted to any other University/Institute for the award of B.Tech. or
any degree or diploma.
Nishtha
22001015042
Muskan
22001015038
CERTIFICATE
This is to certify that the project entitled “Xilinx Based Real Time Clock”,
submitted to Department of Electronics And Computer Engineering, Faculty of
Engineering and Technology, J.C. Bose University of Science and Technology,
YMCA, Faridabad, Haryana-121006 in partial fulfillment of the requirement
for the 4th semester of degree of BACHELOR OF TECHNOLOGY in Electronics
And Computer Engineering, is a bonafide work carried out by them under my
supervision and guidance. This project work comprises of original work and
has not been submitted anywhere else for any other degree to the best of my
knowledge.
This project designs a simple system that can include electronic real time clock
based on FPGA(Field Programmable Gate Array) and VHDL(Very-High-Speed
Integrated Circuit Hardware Description Language). The first chapter briefly
introduces the research background. The second chapter introduces the
theoretical basis of digital circuits and the hardware and software platform
used in this paper. In the third chapter, the design of each submodule of the
system and the overall design of the system are carried out. This chapter is the
core chapter of this article, which describes the functions of the module and
explains the input and output ports. In this chapter, a core point of digital
circuit design is reflected: combining modules that realize simple functions into
modules that can realize complex functions. And integrate sub-modules that
realize similar functions into a top-level module. The fourth chapter is the logic
synthesis of the circuit. The fourth chapter shows the simulation of the core
module function and the simulation of the system output. The conclusion
section summarizes the interesting parts of the design of this paper.
INTRODUCTION
Since FPGAs(Field Programmable Gate Array) first appeared, their flexibility has
been widely favoured by developers. FPGA is now widely used as a chip
verification tool to test the logic function and reliability of the chip. As the
simplest entry-level tool for digital circuits, this paper uses FPGA as the
hardware platform and Vivado as the software platform to design a simple
system that integrates electronic stopwatch and electronic clock functions. The
second chapter introduces the theoretical basis needed for this paper. Binary
signals are generally used in digital circuits, and each digit has only two values
of 0 and 1, so as long as the circuit can correctly distinguish two different
states, a certain deviation is allowed. For the specific functions realized, the
design of the system sub-modules is completed and the functions and ports to
be realized by the sub-modules are explained in detail. The innovative design
of some modules can save hardware overhead. Specifically, it is to achieve as
many functions as possible with as few modules as possible. The alarm is set by
directly changing the state of the counter instead of using a separate register
to set the alarm. Then, the fourth chapter conducts a simple simulation of the
important modules and the functions of the system. The correctness of the
functions of the sub-modules and the correctness of the interconnection of the
sub-modules of the system are verified. Finally, the highlights and design
deficiencies of this paper are summarized.
LITERATURE SURVEY
The whole system basically realizes the function of a clock and a stopwatch. In
clock mode, the digital tube displays the data of hours, minutes and seconds
and counts in a 24-hour cycle. The alarm clock can be set by adding or
subtracting, and the corresponding display digital tube flashes when setting.
When the alarm goes off, you can temporarily turn off the alarm and wait ten
minutes before the alarm goes off again, or turn off the alarm permanently. In
stopwatch mode, the digital tube displays the data of minutes, seconds and
milliseconds. Three data can be temporarily stored during the running of the
stopwatch, and can be viewed in sequence after the stopwatch stops running.
Binary signals are generally used in digital circuits, and each digit has only two
values of 0 and 1, so as long as the circuit can correctly distinguish two different
states, a certain deviation is allowed [1]. This greatly reduces the requirements
for circuit manufacturing accuracy, working conditions and operating
environment. In order to improve the accuracy of the signal, it can be solved by
increasing the number of bits in the binary number. Relatively speaking,
analogy circuits are much stricter than digital circuits in terms of manufacturing
accuracy, working conditions, and operating environment requirements.
Therefore, the first integrated circuits made were digital integrated circuits. So
far, most large-scale and very large-scale integrated circuits are digital
integrated circuits
A. Real Time Clock (RTC) Schematic
Fig. 1.RTC Schematic
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;
entity RealTimeClock is
Port (
clk : in STD_LOGIC; -- System clock input
reset : in STD_LOGIC; -- Reset signal input
seconds : out INTEGER range 0 to 59; -- Output for seconds (0-59)
minutes : out INTEGER range 0 to 59; -- Output for minutes (0-59)
hours : out INTEGER range 0 to 23 -- Output for hours (0-23)
);
end RealTimeClock;
architecture Behavioral of RealTimeClock is
signal counter : INTEGER range 0 to 999999; -- Counter for clock ticks
signal sec_reg, min_reg, hour_reg : INTEGER range 0 to 59; -- Registers for
seconds, minutes, and hours
begin
-- Process to increment the clock every second
process(clk, reset)
begin
if reset = '1' then
counter <= 0;
sec_reg <= 0;
min_reg <= 0;
hour_reg <= 0;
In this paper, the FPGA development board is used as the hardware platform,
and the Xilinx software is used as the software platform. A simple system that
can simultaneously run an electronic stopwatch and an electronic clock is built.
Its functions are often used in daily life. There are two biggest innovations in
this paper. The first is that when setting the clock, the state of the counter can
be directly changed through the key pulse. This greatly saves hardware
overhead. At the same time, a key technical problem of the setting of addition
and subtraction is solved. The same pulse will be sent to the counter as the
addition and subtraction judgment signal and counting clock signal. There
needs to be a small delay between these two signals. That is, the remaining
judgment signals should be prepared in advance before the rising edge of the
clock arrives. The second is to design an audio signal as the driver of the
buzzer. Because the system crystal oscillator can only generate square wave
signals but not sine wave signals. So, we can only produce a "not perfect"
audio. So far, the boring FPGA has been played with new tricks based on the
knowledge of the second-year undergraduate.
Due to the characteristics of FPGA - data loss when power loss, developers
will generally not use FPGA to develop systems that need to implement specific
functions. Due to the flexibility of FPGA, FPGA is currently mainly used as a
verification tool for special-purpose chips and general-purpose chips. At
present, the main force in the fields of deep learning and AI algorithms is GPU-
its powerful computing power provides a good platform for deep learning.
However, as a general-purpose graphics processing chip, GPU is far less flexible
than FPGA. In the future, FPGA will also play a huge role in similar fields such as
AI acceleration and accelerated algorithms.