Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

digital circuit

Rating
-
Sold
-
Pages
6
Grade
A+
Uploaded on
06-08-2023
Written in
2022/2023

digital circuit file

Institution
Course

Content preview

Part One - Verilog

Purpose:

 Learn the basics of structural Verilog Syntax.
 Learn to create a new project using Verilog.
 Learn to simulate the behavior of the universal (NAND/NOR) gates using
DigitalJS Online tool.

Apply the following steps to create a Verilog file, write a module, and
then simulate the model by creating signal waveforms for each exercise.

A. Design:
a) Create a new Verilog HDL design file and Save it (.v).
b) Create a module having the same name as the project name.
c) Determine the number of inputs, outputs, and wires to build the circuit.
d) Write your code using structural Verilog.
e) Check the code for syntax errors.

B. Simulation:
a) Open the https://digitaljs.tilk.eu/ website.
b) Load the Verilog file previously created by selecting “Load from File” tab
and select the “*.v” file.
c) Press the “Synthesize and simulate” button, a diagram of the circuit will be
shown on the right panel.
d) Check the wave alternations for all the possible combinations of inputs, and
their output.
e) Sketch the wave form with the different input combinations and output
result, then draw the truth table of each gate.

Exercises:

, 1. Write a module that implements the functions Q and F of the circuit
diagrams given below. Check the two outputs Q and F. Are they equivalent
experimentally? Prove it using Boolean algebra and show your work.




Solution:

Q and F are equivalent
module nands(A,B,Q,F);

input A,B;

output Q,F;

wire c,d;

nand(c,A,A);

nand(d,B,B);

nand(Q,c,d);

or(F,A,B);

endmodule



2. Write a module that implements the functions X, Y, Q and QX of the circuit
diagrams given below. Then, Compare the outputs Q and Y as well as X and
QX. Are they equivalent experimentally? Prove it using Boolean algebra and
show your work.

Written for

Institution
Course

Document information

Uploaded on
August 6, 2023
Number of pages
6
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.98
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
abdallahomar

Get to know the seller

Seller avatar
abdallahomar beirut arab university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions