data/full_repos/permissive/472097485/Chu04/RotSq_03/FrequencyDivider.v
1: b'%Error: data/full_repos/permissive/472097485/Chu04/RotSq_03/FrequencyDivider.v:9: Cannot find file containing module: \'ModMCounter\'\n ModMCounter #( M, N ) counter ( clk, reset, en, count );\n ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/472097485/Chu04/RotSq_03,data/full_repos/permissive/472097485/ModMCounter\n             data/full_repos/permissive/472097485/Chu04/RotSq_03,data/full_repos/permissive/472097485/ModMCounter.v\n             data/full_repos/permissive/472097485/Chu04/RotSq_03,data/full_repos/permissive/472097485/ModMCounter.sv\n             ModMCounter\n             ModMCounter.v\n             ModMCounter.sv\n             obj_dir/ModMCounter\n             obj_dir/ModMCounter.v\n             obj_dir/ModMCounter.sv\n%Warning-WIDTH: data/full_repos/permissive/472097485/Chu04/RotSq_03/FrequencyDivider.v:12: Operator EQ expects 32 or 2 bits on the LHS, but LHS\'s VARREF \'count\' generates 1 bits.\n                                                                                         : ... In instance FrequencyDivider\n assign max_tick = count == M - 1 ? 1\'b1 : 1\'b0;\n                         ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 error(s), 1 warning(s)\n'
module FrequencyDivider #( parameter M = 2, parameter N = 1 )( input clk, input reset, input en, output max_tick );

	wire [N-1:0] count;

	ModMCounter #( M, N ) counter ( clk, reset, en, count );
	

	assign max_tick = count == M - 1 ? 1'b1 : 1'b0;

endmodule
module FrequencyDivider #( parameter M = 2, parameter N = 1 )( input clk, input reset, input en, output max_tick );


	wire [N-1:0] count;

	ModMCounter #( M, N ) counter ( clk, reset, en, count );
	

	assign max_tick = count == M - 1 ? 1'b1 : 1'b0;

endmodule