Test Fixture Program :-
module tf_Ps_vlog;
reg a;
reg b;
reg c;
wire firstout;
wire secondout;
wire thirdout;
Ps_vlog uut (
.a(a),
.b(b),
.c(c),
.firstout(firstout),
.secondout(secondout),
.thirdout(thirdout)
);
initial begin
a = 0;b = 0;c = 0;#100;
a = 0;b = 0;c = 1;#100;
a = 0;b = 1;c = 0;#100;
a = 0;b = 1;c = 1;#100;
a = 1;b = 0;c = 0;#100;
a = 1;b = 0;c = 1;#100;
a = 1;b = 1;c = 0;#100;
a = 1;b = 1;c = 1;#100;
end
endmodule
--------------------------------------------------------------------------------------------------------------------------
Program for Function Implementation ( VERILOG ) :-
module Ps_vlog(
input a, input b, input c,
output firstout,
output secondout,output thirdout);
assign firstout = a;
assign secondout = ~a & b;
assign thirdout = ~a & ~b & c;
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