Professional Documents
Culture Documents
Laboratory Report Cover Sheet: ELE-408 Fpga Based System Design 7 Semester Fall 2020
Laboratory Report Cover Sheet: ELE-408 Fpga Based System Design 7 Semester Fall 2020
ELE-408
FPGA BASED SYSTEM DESIGN
7th Semester fall 2020
Date of Submission:
Particulars Maximum Marks Marks Obtained
Pre –lab 20
Data analysis 30
Punctuality 20
Total 100
REPORT VERIFICATION
Date:
Signature:
LAB #6
CLOCK DIVISION USING INTERNAL CLOCK OF SPARTAN 3
BOARD AND BLINKING AN EXTERNAL CONNECTED LED AT
DIFFERENT FREQUENCY
6.1 AIM
The aim of this lab is to introduce the student how to use the expansion connector to connect FPGA to
external environment. And this will be done by writing a Verilog code that blinks an led connected to A1
port of development board at different frequency. The blinking frequencies will be set by accessing the
internal clock oscillator.
6.2 OBJECTIVE
After completing this lab, you will be able to:
6.3 THEORY
6.3.1 INTRODUCTION
The Spartan-3 Starter Kit board has three 40-pin expansion connectors labeled A1, A2, and B1.
The A1 and A2 connectors, indicated as and, respectively, in Figure 6-1, are on the top edge of
the board. Connector A1 is on the top left, and A2 is on the top right. The B1 connector,
indicated as in Figure 6-1, is along the right edge of the board.
Each port offers some ability to program the FPGA on the Spartan-3 Starter Kit Board. For example, port
A1 provides additional logic to drive the FPGA and Platform Flash JTAG chain. Similarly, ports A2 and B1
provide connections for Master or Slave Serial mode configuration. Finally, port B1 also offers Master or
Slave Parallel configuration mode. Each 40-pin expansion header, shown in Figure 13-2, uses 0.1-inch
(100 mil) DIP spacing. Pin 1 on each connector is always GND. Similarly, pin 2 is always the +5V DC
output from the switching power supply. Pin 3 is always the output from the +3.3V DC regulator.
The
Spartan-3 Starter Kit board has a dedicated 50 MHz Epson SG-8002JF series clock oscillator source and
an optional socket for another clock oscillator source. Anyone can Use the 50 MHz clock frequency as it
is or derive other frequencies using the FPGAs Digital Clock Managers (DCMs). The pin configuration to
access the clock and socket is shown in the table.
6.4 PRE-LAB:
1. Calculate the bit size of the register to count 50MHz of clock signal.
The cursor lines in the waveform view above represent changes to the r_SWITCH_1 and r_SWITCH_2
inputs. You can see that for the first 200 milliseconds(202454.156ns-400002ns) of simulation time, the
w_LED_DRIVE signal is toggling quickly, at 100 Hz. For the next 200 milliseconds, it toggles a bit
slower, 50 Hz. Then it toggles at 10 Hz, and finally at 1 Hz.
ISIM RESULT:
FOR DIVIDING FACTOR=400(For 200 cycles of clock it will be 1 and 0 for another
200 cylcles):
POST-LAB TASK
Write a code for 10-sec watch. And display result on seven segment.
TEXT FIXTURE:
ISIM RESULTS 10SEC:
60SEC/1MINUTE:
1HOUR/60MINUTE: