data/full_repos/permissive/520487363/EX3 - Function Generator/Files/DAC_TB.v
1: b'%Error: Invalid Option: -\n'
module DAC_TB();
    reg clk, rst;
    reg [7:0] in;

    wire out;

    DAC dac(.in(in), .clk(clk), .rst(rst), .out(out));

    always #5 clk = ~clk;

    initial begin
        #0 clk = 0; rst = 0;
        #0 in = 8'd222;
        #3 rst = 1;
        #3 rst = 0;
        #10000 $stop;
    end
endmodule
module DAC_TB();

    reg clk, rst;
    reg [7:0] in;

    wire out;

    DAC dac(.in(in), .clk(clk), .rst(rst), .out(out));

    always #5 clk = ~clk;

    initial begin
        #0 clk = 0; rst = 0;
        #0 in = 8'd222;
        #3 rst = 1;
        #3 rst = 0;
        #10000 $stop;
    end
endmodule