data/full_repos/permissive/174323821/hdl/clocking/jtframe_cen48.v
 line:147: before: ","
1: b'%Warning-MULTITOP: data/full_repos/permissive/174323821/hdl/clocking/jtframe_cen48.v:76: Multiple top level modules\n                                                                                       : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                       : ... Top module \'jtframe_cen48\'\nmodule jtframe_cen48(\n       ^~~~~~~~~~~~~\n                                                                                       : ... Top module \'jtframe_cen3p57\'\nmodule jtframe_cen3p57(\n       ^~~~~~~~~~~~~~~\n                                                                                       : ... Top module \'jtframe_cenp384\'\nmodule jtframe_cenp384(\n       ^~~~~~~~~~~~~~~\n                                                                                       : ... Top module \'jtframe_cen10\'\nmodule jtframe_cen10(\n       ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/174323821/hdl/clocking/jtframe_cen48.v:105: Cannot find file containing module: \'jtframe_frac_cen\'\n    jtframe_frac_cen #(.W(2),.WC(16)) u_frac(\n    ^~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/174323821/hdl/clocking,data/full_repos/permissive/174323821/jtframe_frac_cen\n             data/full_repos/permissive/174323821/hdl/clocking,data/full_repos/permissive/174323821/jtframe_frac_cen.v\n             data/full_repos/permissive/174323821/hdl/clocking,data/full_repos/permissive/174323821/jtframe_frac_cen.sv\n             jtframe_frac_cen\n             jtframe_frac_cen.v\n             jtframe_frac_cen.sv\n             obj_dir/jtframe_frac_cen\n             obj_dir/jtframe_frac_cen.v\n             obj_dir/jtframe_frac_cen.sv\n%Error: Exiting due to 1 error(s), 1 warning(s)\n'
module jtframe_cen10(
    input   clk,
    output  reg cen10,

    output  reg cen10b
);

reg [2:0] cencnt=3'd0;
reg [2:0] muxcnt=3'd0;
reg [2:0] next=3'd4, nextb=3'd2;

always @(*) begin
    next = muxcnt[2] ? 3'd3 : 3'd4;
    nextb= muxcnt[2] ? 3'd1 : 3'd2;
end

always @(posedge clk) begin
    cencnt <= cencnt+3'd1;
    cen10  <= cencnt == next;
    cen10b <= cencnt == nextb;
    if( cencnt==next ) begin
        cencnt <= 3'd0;
        muxcnt <= muxcnt[2] ? 3'd1 : muxcnt + 3'b1;
    end
end
endmodule
module jtframe_cen10(
    input   clk,
    output  reg cen10,

    output  reg cen10b
);


reg [2:0] cencnt=3'd0;
reg [2:0] muxcnt=3'd0;
reg [2:0] next=3'd4, nextb=3'd2;

always @(*) begin
    next = muxcnt[2] ? 3'd3 : 3'd4;
    nextb= muxcnt[2] ? 3'd1 : 3'd2;
end

always @(posedge clk) begin
    cencnt <= cencnt+3'd1;
    cen10  <= cencnt == next;
    cen10b <= cencnt == nextb;
    if( cencnt==next ) begin
        cencnt <= 3'd0;
        muxcnt <= muxcnt[2] ? 3'd1 : muxcnt + 3'b1;
    end
end
endmodule