data/full_repos/permissive/208325333/Files/baudgen.v
1: b'%Error: data/full_repos/permissive/208325333/Files/baudgen.v:10: Cannot find include file: baudgen.vh\n`include "baudgen.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/208325333/Files,data/full_repos/permissive/208325333/baudgen.vh\n             data/full_repos/permissive/208325333/Files,data/full_repos/permissive/208325333/baudgen.vh.v\n             data/full_repos/permissive/208325333/Files,data/full_repos/permissive/208325333/baudgen.vh.sv\n             baudgen.vh\n             baudgen.vh.v\n             baudgen.vh.sv\n             obj_dir/baudgen.vh\n             obj_dir/baudgen.vh.v\n             obj_dir/baudgen.vh.sv\n%Error: data/full_repos/permissive/208325333/Files/baudgen.v:26: Define or directive not defined: \'`B115200\'\nparameter M = `B115200;\n              ^~~~~~~~\n%Error: data/full_repos/permissive/208325333/Files/baudgen.v:26: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\nparameter M = `B115200;\n                      ^\n%Error: Exiting due to 3 error(s)\n'
module baudgen(input wire clk,
               input wire clk_ena, 
               output wire clk_out);


parameter M = `B115200;


localparam N = $clog2(M);


reg [N-1:0] divcounter = 0;


always @(posedge clk)

  if (clk_ena)

    divcounter <= (divcounter == M - 1) ? 0 : divcounter + 1;
  else

    divcounter <= M - 1;




assign clk_out = (divcounter == 0) ? clk_ena : 0;


endmodule
module baudgen(input wire clk,
               input wire clk_ena, 
               output wire clk_out);



parameter M = `B115200;


localparam N = $clog2(M);


reg [N-1:0] divcounter = 0;


always @(posedge clk)

  if (clk_ena)

    divcounter <= (divcounter == M - 1) ? 0 : divcounter + 1;
  else

    divcounter <= M - 1;




assign clk_out = (divcounter == 0) ? clk_ena : 0;


endmodule