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

沒有留言:

張貼留言

WOKWI ESP32 LED Control , Node-Red MQTT SQLITE  

WOKWI ESP32 LED Control ,  Node-Red  MQTT SQLITE   const char broker[] = "test.mosquitto.org" ; //const char broker[] = "br...