nand2/01_Boolean_Logic/Nand.v

19 lines
283 B
Coq
Raw Normal View History

2023-01-11 10:13:09 +00:00
/**
* Nand gate:
2023-01-11 10:13:09 +00:00
* out = 0 if (a == 1 and b == 1)
* 1 otherwise
*/
`default_nettype none
module Nand(
input a,
input b,
output out
2023-01-11 10:13:09 +00:00
);
// No need to implement this chip
// This chip is implemented using verilog primitives
nand(out,a,b);
2023-01-11 10:13:09 +00:00
endmodule