2023-01-11 10:13:09 +00:00
|
|
|
/**
|
2024-10-17 18:36:58 +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(
|
2024-10-17 18:36:58 +00:00
|
|
|
input a,
|
|
|
|
input b,
|
|
|
|
output out
|
2023-01-11 10:13:09 +00:00
|
|
|
);
|
|
|
|
|
2024-10-17 18:36:58 +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
|