PPT Slide
//data flow NAND module
module NAND2 (in1, in2, out);
input in1, in2;
output out;
assign out = ~(in1 & in2);
endmodule
// AND made up of 2 consecutive NAND's
module AND2(in1,in2,out);
input in1,in2;
output out;
wire w1; // to connect the 2 NAND's
NAND2 nand1(in1,in2,w1);
NAND2 nand2(w1,w1,out);
endmodule
Previous slide
Next slide
Back to first slide
View graphic version