I came found this example when reading a Verilog article, in which it discusses about a not gate with two inputs.
Is there anyone here who can explain what this means?
module buf_not_gates (input a, b, output c, d);
buf (c, a, b); // c is the output, a and b are inputs
not (d, a, b); // d is the output, a and b are inputs
endmodule
module buf_not_gates_tb;
reg a, b;
wire c, d;
buf_not_gates Instance0 (a, b, c,d);
initial begin
a = 0; b = 0;
#1 a = 0; b = 1;
#1 a = 1; b = 0;
#1 a = 1; b = 1;
end
initial begin
$monitor ("T=%t| a=%b |b=%b| c(buf)=%b |d(not)=%b", $time, a, b, c, d);
end
endmodule