data/full_repos/permissive/124591763/servo/servo_drv.v
 line:10: before: "="
data/verilator_xmls/8c011327-8023-4701-a4e8-bd51f0bde496.xml
module servo_drv (
    input  wire        clk,



    input  wire [14:0] on_t,

    output reg         srv_o = 1'b0
);



    reg [19:0] cnt = 20'h0;

    always @ (posedge clk) begin
        if (cnt < `SERVO_DRV_CNT_MAX) cnt <= cnt + 20'h1;
        else                          cnt <= 20'h0;
    end

    always @ (posedge clk) begin
        if (cnt < {5'h0, on_t}) srv_o <= 1'b1;
        else                    srv_o <= 1'b0;
    end

endmodule
module servo_drv (
    input  wire        clk,



    input  wire [14:0] on_t,

    output reg         srv_o = 1'b0
);




    reg [19:0] cnt = 20'h0;

    always @ (posedge clk) begin
        if (cnt < `SERVO_DRV_CNT_MAX) cnt <= cnt + 20'h1;
        else                          cnt <= 20'h0;
    end

    always @ (posedge clk) begin
        if (cnt < {5'h0, on_t}) srv_o <= 1'b1;
        else                    srv_o <= 1'b0;
    end

endmodule