Bugs nand3

From HDLBits

bugs_mux2Previous

This three-input NAND gate doesn't work. Fix the bug(s).

You must use the provided 5-input AND gate:

module andgate ( output out, input a, input b, input c, input d, input e );


Module Declaration

module top_module (input a, input b, input c, output out);
//

    andgate inst1 ( a, b, c, out );

Write your solution here

x
 
1
module top_module (input a, input b, input c, output out);//
2
3
    andgate inst1 ( a, b, c, out );
4
5
endmodule
6
Upload a source file...