0% found this document useful (0 votes)
5 views7 pages

Lab4 Blinking Led

Uploaded by

Nour Turky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views7 pages

Lab4 Blinking Led

Uploaded by

Nour Turky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Lab 4: Blinking LEDs and a Clock Divider

Nour turky
28/10/2024
Introduction:
in this lab we are going to understand how a D flip flop works, how a clock
divider works, and do the implementation of them.
Created a nexw project ‘lab4’

Defined the project settings

1) D Flip-Flop (D-FF):
Created a new verilog module named ‘dff’ :

Defined the inputs and the output:

Implementation of the D-FF


Synthesized the file:

2) Clock Divider
Created a new verilog module named ‘clk_divider’
Defined the inputs and the output

Implemented the clok divider:


3) Simulate the Circuit, Implement, and Test It On-Board
Created a verilog test fixture:

In class we tried the code you provided us but it did not work for anyone
that is why this part of the report is missing

4) Uploaded the code on the board


Created an implementation contraints file called ‘blink led’

Clock definition and then generated a programming file

Then uploaded the code to the board. During this lab I worked with Sabaa,
we showed the led blinking in class.
Conclusion:
In this lab, we learned about the D flip-flop's functionality, practiced
writing its behavioral description in Verilog, and explored a simple clock
divider circuit.
During this lab, the only problem we faced was the simuloation otherwise
everything else is understandable.

You might also like