Question: Objective: To implement a Verilog gate level model for 3 2 - bit and 6 4 - bit Ripple Carry Adders. Outcome: Gate level implementation
Objective:
To implement a Verilog gate level model for bit and bit Ripple Carry Adders.
Outcome:
Gate level implementation for the following components.
TWOSCOMP
TWOSCOMP
Instruction:
Continue with your Modelsim Project as in Lab Assignment
Complete gate level description of following components.
RCADDSUB in rcaddsubv file
Try to use generate block in a loop this time.
TWOSCOMP in logic.v file
TWOSCOMP in logic.v file
Compile entire Project and simulate following modules in ModelSim simulator.
TWOSCOMPTB
TWOSCOMPTB
Observe corresponding outcomes on waveform windows and fix any issue.
Each testbench will generate corresponding output file.
OUTPUTtwoscomptbout
OUTPUTtwoscomptbout
This should match with corresponding golden output file in CSProjectGOLDEN directory.
twoscomptbout.golden
twoscomptbout.golden
Add more testing in these testbenches to make sure outcome is correct.
Name: rcaddsubv
Module: RCADDSUB
Output: Y : Output bit
CO : Carry Out
Input: A : bit input
B : bit input
SnA : if SnA it is add, subtraction otherwise
Notes: bit adder subtractor implementaiton.
"include prjdefinition.v
module RCADDSUBY CO A B SnA;
output list
output : Y:
output CO:
input list
input : A:
input : B;
input SnA:
TBD
endmodule
module RCADDSUBY CO A B SnA:
output list
output DATAINDEXLIMIT: Y:
output CO:
input list
input DATAINDEXLIMIT: A;
input DATAINDEXLIMIT: B;
input SnA;
TBD
endmodule
Name: logic.v
Module:
Input:
Output:
Notes: Common definitions
Name: logic.v
Module:
Input:
Output:
Notes: Common definitions
bit two's complement
module TWOSCOMPYA;
output list
output : Y;
input list
input : A;
TBD
endmodule
bit two's complement
module TWOSCOMPYA;
output list
output : Y;
input list
input : A;
TBD
endmodule
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 re
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
