Decoder In another logic... ...
Test Fixture Program :-
module tf_Decoder_vlog11;
// Inputs
reg e;
reg a;
reg b;
// Outputs
wire firstout;
wire secondout;
wire thirdout;
wire fourthout;
// Instantiate the Unit Under Test (UUT)
Decoder_vlog11 uut (
.e(e),
.a(a),
.b(b),
.firstout(firstout),
.secondout(secondout),
.thirdout(thirdout),
.fourthout(fourthout)
);
initial begin
// Initialize Inputs
e = 0; a = 0; b = 0; #100;
e = 1; a = 0; b = 0; #100;
e = 1; a = 0; b = 1; #100;
e = 1; a = 1; b = 0; #100;
e = 1; a = 1; b = 1; #100;
end
endmodule
--------------------------------------------------------------------------------------------------------------------------
Program for DECODER ( VERILOG ) :-
module Decoder_vlog11( input e,
input a, input b,
output firstout,
output secondout,
output thirdout,
output fourthout);
assign firstout = (e) ;
assign secondout = (e & (a | b)) ;
assign thirdout = (e & a) ;
assign fourthout = (e & a & b) ;
endmodule
Nice article , thanks for sharing , very informative and presented nice , keep updating morered hat linux administration training in chennai|red hat training in chennai|RHCE training in chennai|red hat training center in chennai|red hat training partner in chennai|red hat linux certification training in chennai
ReplyDelete