2021年5月11日 星期二

HBLbits_Verilog Basic_Tb/tb1

 HBLbits_Verilog Basic_Tb/tb1

Create a Verilog testbench that will produce the following waveform for outputs A and B:


`timescale 1ps / 1ps

module top_module ( output reg A, output reg B );//
    // generate input patterns here
    initial begin
        A=0;B=0;
        #10 A=1; //A=1,B=0;
        #5 B=1;  //A=1 B=1;
        #5 A=0;
        #20 B=0;
    end
endmodule

沒有留言:

張貼留言

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red

作業2 MQTT (Relay + DHT22) 控制 ------- 利用Node-Red 1) 安裝Node-Red  https://ithelp.ithome.com.tw/articles/10201795 https://www.youtube.com/watch?v...