Every FPGA project needs to start with a very simple core. Then, working from
4
simplicity, more and more complex cores can be built until an eventual
5
application comes from all the tiny details.
6
7
This real time clock began with one such simple core. All of the pieces to
8
this clock are simple. Nothing is inherently complex. However, placing this
9
clock into a larger FPGA structure requires a Wishbone bus, and being able
10
to command and control an FPGA over a wishbone bus is an achievement in and
11
of itself. Further, the clock produces outputs that can be used to strobe
12
an interrupt line. Reading and processing that interrupt line requires
13
a whole 'nother bit of logic and the ability to capture, recognize, and
14
respond to interrupts. Hence, once you get a simple clock working, you have
15
a lot working.
16
17
Included in this repository are several basic cores which can be
18
used for this purpose:
19
20
- rtcclock: the original RTC Clock module. This was originally built for a Basys-3 board, and so it also has outputs suitable for commanding LEDs and a seven segment display.
21
- rtclight: Just the basic RTC, with no LEDs or seven segment display output wires.
22
- rtcgps: A real-time clock which can be used together with a cleaned-up GPS PPS, to keep the clock accurate at a subsecond level to the top of the second. Further work is required to get the clock to the correct second, but this will hold it to the correct subsecond interval.