data/full_repos/permissive/421030651/src/cpu/clkmnt.sv
1: b"%Error: data/full_repos/permissive/421030651/src/cpu/clkmnt.sv:16: Cannot find file containing module: 'CG'\nCG u_cg(\n^~\n        ... Looked in:\n             data/full_repos/permissive/421030651/src/cpu,data/full_repos/permissive/421030651/CG\n             data/full_repos/permissive/421030651/src/cpu,data/full_repos/permissive/421030651/CG.v\n             data/full_repos/permissive/421030651/src/cpu,data/full_repos/permissive/421030651/CG.sv\n             CG\n             CG.v\n             CG.sv\n             obj_dir/CG\n             obj_dir/CG.v\n             obj_dir/CG.sv\n%Error: Exiting due to 1 error(s)\n"
module clkmnt (
    input        clk_free,
    input        rstn,
    input        wfi,
    input        wakeup,
    output logic clk_ret,
    output logic sleep
);

always_ff @(posedge clk_free or negedge rstn) begin
    if (~rstn)       sleep <= 1'b0;
    else if (wakeup) sleep <= 1'b0;
    else if (wfi)    sleep <= 1'b1;
end

CG u_cg(
    .CK   ( clk_free ),
    .EN   ( ~sleep   ),
    .CKEN ( clk_ret  )
);


endmodule
module clkmnt (
    input        clk_free,
    input        rstn,
    input        wfi,
    input        wakeup,
    output logic clk_ret,
    output logic sleep
);


always_ff @(posedge clk_free or negedge rstn) begin
    if (~rstn)       sleep <= 1'b0;
    else if (wakeup) sleep <= 1'b0;
    else if (wfi)    sleep <= 1'b1;
end

CG u_cg(
    .CK   ( clk_free ),
    .EN   ( ~sleep   ),
    .CKEN ( clk_ret  )
);


endmodule