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

沒有留言:

張貼留言

MQTT WS HMI 與 Wokwi ESP32 連線的資訊透過HiveMQ

MQTT WS HMI 與 Wokwi ESP32 連線的資訊透過HiveMQ     https://console.hivemq.cloud/clusters 當您進入 HiveMQ Cloud Console 的 Clusters 頁面時,您的目標是取得能讓 MQTT W...