Reputation: 333
I would like to convert the following into NAND and NOT gates only in Verilog HDL.
NAND
NOT
A & B | C
I tried the following in Verilog:
A &~ B &~ ~C
However, I get a syntax error at token ~ in the ~C.
~
~C
Upvotes: 0
Views: 525
Reputation: 5761
You can do it that way:
~(~(A&B) & ~C)
Upvotes: 2