verilog predefined gates (re)definition
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module nand_gate(y, a, b);
|
||||
input a, b;
|
||||
output y;
|
||||
wire tmpAnd;
|
||||
|
||||
and(tmpAnd, a, b);
|
||||
not(y, tmpAnd);
|
||||
endmodule
|
||||
Reference in New Issue
Block a user