Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Self - Diagnosis ( Built - in self - test ) test - bench that is able to exhaustively tests the 4 -
Write a SelfDiagnosis Builtin selftest testbench that is able to exhaustively tests the bit comparator. testbench.sv
Code your testbench here
or browse Examples
module compstrtb;
endmodule
design.sv
Code your SVVerilog Design
module compstr
lt eq gt A B;
input :;
output lt gt eq;
wire
eq eq lto, lt gt gtww
;
compstr
Mt gt eq A : B :
;
compstr
Mt gto, eq A : B :
;
and aw eq gt;
or ol gtgtw;
and aw eq lto;
or ;
and ax eq eq eq;
endmodule
module
compstrt gt eq A B ;
input :;
output lt gt eq;
wire w www w w;
not ;
not NwA;
and Aw w B;
and AwwwB;
and w w B B;
xnor ;
xnor ;
and Aeqww;
or ltwww;
nor Ngt lt eq;
endmoduleExhaustively compares the actual output of the module with the expected output for every test case andmessages the pass and failure of any test case.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started