data/full_repos/permissive/520487363/EX3 - Function Generator/Files/WaveGenProcessorTB.v
1: b'%Error: Invalid Option: -\n'
module WaveGenProcessorTB();
    reg [2:0] sel = 3'b001;
    wire [7:0] cnt, out;
    reg clk = 1'b0, rst = 1'b0;

    WaveGenProcessor main(.sel(sel), .cnt(cnt), .clk(clk), .rst(rst), .out(out));
    Counter counter(.en(1'b1), .clr(1'b0), .load(1'b0), .clk(clk), .rst(rst), .out(cnt));

    always #5 clk = ~clk;

    initial begin
        #3 rst = 1'b1;
        #5 rst = 1'b0;
        #25600 sel = 3'b011;
        #25600 sel = 3'b100;
        #25600 sel = 3'b101;
        #25600 sel = 3'b010;
        #25600 sel = 3'b110;
        #25600 sel = 3'b000;
        #25600 $stop;
    end
endmodule
module WaveGenProcessorTB();

    reg [2:0] sel = 3'b001;
    wire [7:0] cnt, out;
    reg clk = 1'b0, rst = 1'b0;

    WaveGenProcessor main(.sel(sel), .cnt(cnt), .clk(clk), .rst(rst), .out(out));
    Counter counter(.en(1'b1), .clr(1'b0), .load(1'b0), .clk(clk), .rst(rst), .out(cnt));

    always #5 clk = ~clk;

    initial begin
        #3 rst = 1'b1;
        #5 rst = 1'b0;
        #25600 sel = 3'b011;
        #25600 sel = 3'b100;
        #25600 sel = 3'b101;
        #25600 sel = 3'b010;
        #25600 sel = 3'b110;
        #25600 sel = 3'b000;
        #25600 $stop;
    end
endmodule