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

沒有留言:

張貼留言

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

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