data/full_repos/permissive/420117502/Basic/4_PWM/PWM_Generator.v
1: b"%Error: data/full_repos/permissive/420117502/Basic/4_PWM/PWM_Generator.v:16: Mixing X/Z/? with digits not legal in decimal constant: ?1\n    assign pwm_wave = cnt>32'd?1'b1:1'b0;  \n                          ^~~~~~\n%Error: data/full_repos/permissive/420117502/Basic/4_PWM/PWM_Generator.v:16: syntax error, unexpected INTEGER NUMBER, expecting ',' or ';'\n    assign pwm_wave = cnt>32'd?1'b1:1'b0;  \n                                ^~~\n%Error: Exiting due to 2 error(s)\n"
module PWM_Generator(
    input wire clk,
    input wire rst_n,

    output reg pwm_wave
);
    parameter N = 1;
    reg [31:0] cnt;

    always@(posedge clk or negedge rst_n) begin
        if(~rst_n) cnt<='b0;
        else if (cnt<=20'd999_999) cnt<=cnt+1'b1;
        else cnt<='b0;
    end
    
    assign pwm_wave = cnt>32'd?1'b1:1'b0;

endmodule
module PWM_Generator(
    input wire clk,
    input wire rst_n,

    output reg pwm_wave
);

    parameter N = 1;
    reg [31:0] cnt;

    always@(posedge clk or negedge rst_n) begin
        if(~rst_n) cnt<='b0;
        else if (cnt<=20'd999_999) cnt<=cnt+1'b1;
        else cnt<='b0;
    end
    
    assign pwm_wave = cnt>32'd?1'b1:1'b0;

endmodule