Tb/tb1

2023. 6. 20. 01:07FPGA/HDLBits

728x90

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

module top_module ( output reg A, output reg B );//

    // generate input patterns here
    initial begin
        A = 0;
        B = 0;
        
        #10
        A = ~A;
        #5
        B = ~B;
        #5
        A = ~A;
        #20
        B = ~B;
    end

endmodule

 

'FPGA > HDLBits' 카테고리의 다른 글

Tb/tb2  (0) 2023.06.20
Tb/and  (0) 2023.06.20
Tb/clock  (0) 2023.06.20
Popcount255  (0) 2023.06.20
Vector100r  (0) 2023.06.20