data/full_repos/permissive/472097485/Chu04/Counters_00/ModMCounter.v
1: b'%Error: data/full_repos/permissive/472097485/Chu04/Counters_00/ModMCounter.v:8: Cannot find file containing module: \'DFFArray\'\n DFFArray #( N ) flipFlops ( clk, reset, next, count );\n ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/472097485/Chu04/Counters_00,data/full_repos/permissive/472097485/DFFArray\n             data/full_repos/permissive/472097485/Chu04/Counters_00,data/full_repos/permissive/472097485/DFFArray.v\n             data/full_repos/permissive/472097485/Chu04/Counters_00,data/full_repos/permissive/472097485/DFFArray.sv\n             DFFArray\n             DFFArray.v\n             DFFArray.sv\n             obj_dir/DFFArray\n             obj_dir/DFFArray.v\n             obj_dir/DFFArray.sv\n%Warning-WIDTH: data/full_repos/permissive/472097485/Chu04/Counters_00/ModMCounter.v:11: Operator EQ expects 32 or 2 bits on the LHS, but LHS\'s VARREF \'count\' generates 1 bits.\n                                                                                       : ... In instance ModMCounter\n assign next = en ? ( count == M - 1 ? 0 : count + 1 ) : count;\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 ModMCounter #( parameter M = 2, parameter N = 1 )( input clk, input reset, input en, output [N-1:0] count );

	wire [N-1:0] next;

	DFFArray #( N ) flipFlops ( clk, reset, next, count );


	assign next = en ? ( count == M - 1 ? 0 : count + 1 ) : count;

endmodule
module ModMCounter #( parameter M = 2, parameter N = 1 )( input clk, input reset, input en, output [N-1:0] count );


	wire [N-1:0] next;

	DFFArray #( N ) flipFlops ( clk, reset, next, count );


	assign next = en ? ( count == M - 1 ? 0 : count + 1 ) : count;

endmodule