data/full_repos/permissive/149070951/tests/06-test-servo/dividerp1.v
1: b'%Error: data/full_repos/permissive/149070951/tests/06-test-servo/dividerp1.v:10: Cannot find include file: divider.vh\n`include "divider.vh" \n         ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/149070951/tests/06-test-servo,data/full_repos/permissive/149070951/divider.vh\n             data/full_repos/permissive/149070951/tests/06-test-servo,data/full_repos/permissive/149070951/divider.vh.v\n             data/full_repos/permissive/149070951/tests/06-test-servo,data/full_repos/permissive/149070951/divider.vh.sv\n             divider.vh\n             divider.vh.v\n             divider.vh.sv\n             obj_dir/divider.vh\n             obj_dir/divider.vh.v\n             obj_dir/divider.vh.sv\n%Error: data/full_repos/permissive/149070951/tests/06-test-servo/dividerp1.v:25: Define or directive not defined: \'`T_20ms\'\nparameter M = `T_20ms;\n              ^~~~~~~\n%Error: data/full_repos/permissive/149070951/tests/06-test-servo/dividerp1.v:25: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\nparameter M = `T_20ms;\n                     ^\n%Error: Exiting due to 3 error(s)\n'
module dividerp1(input wire clk,
                 input wire [17:0] pos,
                 input wire timer_ena,
                 output wire clk_out);


parameter M = `T_20ms;


parameter N = 18;


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


always @(posedge clk)
    if (timer_ena)
      divcounter <= (divcounter == M - 1) ? 0 : divcounter + 1;
    else
      divcounter <= 0;

assign clk_out = (divcounter < pos) ? 1 : 0;


endmodule
module dividerp1(input wire clk,
                 input wire [17:0] pos,
                 input wire timer_ena,
                 output wire clk_out);



parameter M = `T_20ms;


parameter N = 18;


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


always @(posedge clk)
    if (timer_ena)
      divcounter <= (divcounter == M - 1) ? 0 : divcounter + 1;
    else
      divcounter <= 0;

assign clk_out = (divcounter < pos) ? 1 : 0;


endmodule