2021年4月24日 星期六

HBLbits_Verilog Basic_Fadd

 HBLbits_Verilog Basic_Fadd

Create a full adder. A full adder adds three bits (including carry-in) and produces a sum and carry-out.

module top_module( 
    input a, b, cin,
    output cout, sum );
    assign {cout, sum}=a+b+cin;
    
    //assign cout = a & b | a & cin | b & cin;
    //assign sum = a ^ b ^ cin;
endmodule


沒有留言:

張貼留言

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

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