data/full_repos/permissive/514217463/core/rtl/clk_divn.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/514217463/core/rtl/clk_divn.v:37: 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 \'clk_divn_even\'\nmodule clk_divn_even (\n       ^~~~~~~~~~~~~\n                                                                              : ... Top module \'clk_divn_odd\'\nmodule clk_divn_odd (\n       ^~~~~~~~~~~~\n                                                                              : ... Top module \'clk_div\'\nmodule clk_div (\n       ^~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module clk_div (
    input clk,
    input rst,
    output reg clk_div
    );
 
 parameter constantNumber = 25;
 
 reg [31:0] count;
 
  always @ (posedge(clk), posedge(rst))
  begin
    if (rst == 1'b1)
        count <= 32'b0;
    else if (count == constantNumber - 1)
        count <= 32'b0;
    else
        count <= count + 1;
  end

  always @ (posedge(clk), posedge(rst))
  begin
    if (rst == 1'b1)
        clk_div <= 1'b0;
    else if (count == constantNumber - 1)
        clk_div <= ~clk_div;
    else
        clk_div <= clk_div;
  end

endmodule
module clk_div (
    input clk,
    input rst,
    output reg clk_div
    );

 
 parameter constantNumber = 25;
 
 reg [31:0] count;
 
  always @ (posedge(clk), posedge(rst))
  begin
    if (rst == 1'b1)
        count <= 32'b0;
    else if (count == constantNumber - 1)
        count <= 32'b0;
    else
        count <= count + 1;
  end

  always @ (posedge(clk), posedge(rst))
  begin
    if (rst == 1'b1)
        clk_div <= 1'b0;
    else if (count == constantNumber - 1)
        clk_div <= ~clk_div;
    else
        clk_div <= clk_div;
  end

endmodule