2021年5月6日 星期四

HBLbits_Verilog Basic_Bugs nand3

HBLbits_Verilog Basic_Bugs nand3 

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);


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


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


endmodule


module top_module (input a, input b, input c, output out);
    wire d,e,andout;
    assign d=1'b1;
    assign e=1'b1;
    assign out=~andout;

    andgate inst1 (andout,a,b,c,d,e);
endmodule
//module andgate ( output out, input a, input b, input c, input d, input e );

沒有留言:

張貼留言

2024產專班 作業2 (純模擬)

2024產專班 作業2  (純模擬) 1) LED ON,OFF,TIMER,FLASH 模擬 (switch 控制) 2)RFID卡號模擬 (buttom  模擬RFID UID(不從ESP32) Node-Red 程式 [{"id":"d8886...