This is a program to Implement the function for getting output at 1,3,4,6,7,8,9,13 ... ...
Test Fixture Program :-
module tf_functn1_vlog;
reg a;
reg b;
reg c;
reg d;
wire functionout;
functn1_vlog uut (
.a(a),
.b(b),
.c(c),
.d(d),
.functionout(functionout)
);
initial begin
a = 0;b = 0;c = 0;d = 0;#100;
a = 0;b = 0;c = 0;d = 1;#100;
a = 0;b = 0;c = 1;d = 0;#100;
a = 0;b = 0;c = 1;d = 1;#100;
a = 0;b = 1;c = 0;d = 0;#100;
a = 0;b = 1;c = 0;d = 1;#100;
a = 0;b = 1;c = 1;d = 0;#100;
a = 0;b = 1;c = 1;d = 1;#100;
a = 1;b = 0;c = 0;d = 0;#100;
a = 1;b = 0;c = 0;d = 1;#100;
a = 1;b = 0;c = 1;d = 0;#100;
a = 1;b = 0;c = 1;d = 1;#100;
a = 1;b = 1;c = 0;d = 0;#100;
a = 1;b = 1;c = 0;d = 1;#100;
a = 1;b = 1;c = 1;d = 0;#100;
a = 1;b = 1;c = 1;d = 1;#100;
end
endmodule
--------------------------------------------------------------------------------------------------------------------------
Program for Function Implementation ( VERILOG ) :-
module functn1_vlog(input a,
input b, input c, input d,
output functionout);
assign functionout = (~a & ~b & d) | (~a & b & ~d) |(~a & c & d) |(a & ~c & d) |(a & ~b & ~c) ;
endmodule
Great stuff , thanks for sharing , very informative and presented well , keep updating morered hat linux training institute in chennai|best red hat training center in chennai|red hat certified training partners in chennai|red hat linux training center in chennai|red hat linux training centre in chennai|red hat training in chennai
ReplyDelete