data/full_repos/permissive/470816788/verilog/rtl/wrapped_hack_soc/hack_soc/hack_clock.v
data/verilator_xmls/b4ae308a-439d-4661-b438-095bbd303e85.xml
module hack_clock(
    input clk,
    input reset, 
    output reg hack_clk,
    output reg strobe,
    output going_to_rise
);

reg [6:0] counter;

assign going_to_rise = counter==32 && ~hack_clk; 

always @(posedge clk) begin

    if(reset) begin
        hack_clk <= 0;
        counter <= 0; 
        strobe <= 0;

    end else begin
        counter <= counter + 1'b1;
        strobe <= 1'b0;
        if(counter==34) begin
            counter <= 0;
            strobe <= 1'b1;
            hack_clk <= ~hack_clk;
        end
    end

end

endmodule
module hack_clock(
    input clk,
    input reset, 
    output reg hack_clk,
    output reg strobe,
    output going_to_rise
);


reg [6:0] counter;

assign going_to_rise = counter==32 && ~hack_clk; 

always @(posedge clk) begin

    if(reset) begin
        hack_clk <= 0;
        counter <= 0; 
        strobe <= 0;

    end else begin
        counter <= counter + 1'b1;
        strobe <= 1'b0;
        if(counter==34) begin
            counter <= 0;
            strobe <= 1'b1;
            hack_clk <= ~hack_clk;
        end
    end

end

endmodule