Question: { USE GATE MODELING } ' ' ' ' DO NOT USE ALWAYS and ANYWAYS Objective: To implement a Verilog gate level model for 3
USE GATE MODELING
DO NOT USE ALWAYS and ANYWAYS
Objective: To implement a Verilog gate level model for bit register.
Outcome:Gate level implementation for the following components.
SRLATCHDLATCHDFFREGREG
Instruction: Complete gate level description of following components in logic.v file.
SRLATCHDLATCH DFFREGREG
Compile entire Project and simulate following modules in ModelSim simulator.
SRLATCHTBDLATCHTBDFFTBREGTBREGTB
Observe corresponding outcomes on waveform windows and fix any issue.
Each testbench will generate corresponding output file.
OUTPUTsrlatchtboutOUTPUTdlatchtboutOUTPUTdfftboutOUTPUTdregtboutOUTPUTdregtbout
This should match with corresponding golden output file in CSProjectGOLDENdirectory
srlatchtbout.goldendlatchtbout.goldendfftbout.goldendregtbout.goldendregtbout.golden
Add more testing in these testbenches to make sure outcome is correct.
bit registere ve edge, Reset on RESET
module REGQ D LOAD, CLK RESET;
output : Q;
input CLK LOAD;
input : D;
input RESET;
TBD
endmodule
bit register ve edge,
Preset on nP nR reset on nP nR;
Undefined nP nR
normal operation nP nR
module REGQ Qbar, D L C nP nR;
input D C L;
input nP nR;
output QQbar;
TBD
endmodule
bit flipflop ve edge,
Preset on nP nR reset on nP nR;
Undefined nP nR
normal operation nP nR
module DFFQ Qbar, D C nP nR;
input D C;
input nP nR;
output QQbar;
TBD
endmodule
bit D latch
Preset on nP nR reset on nP nR;
Undefined nP nR
normal operation nP nR
module DLATCHQ Qbar, D C nP nR;
input D C;
input nP nR;
output QQbar;
TBD
endmodule
bit SR latch
Preset on nP nR reset on nP nR;
Undefined nP nR
normal operation nP nR
module SRLATCHQQbar, S R C nP nR;
input S R C;
input nP nR;
output QQbar;
TBD
endmodule
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
