data/full_repos/permissive/120749710/metronome.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/120749710/metronome.v:89: 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 \'metronome\'\nmodule metronome(\n       ^~~~~~~~~\n                                                                      : ... Top module \'band\'\nmodule band(\n       ^~~~\n%Warning-WIDTH: data/full_repos/permissive/120749710/metronome.v:37: Operator DIV expects 32 bits on the RHS, but RHS\'s VARREF \'speed\' generates 8 bits.\n                                                                   : ... In instance metronome\n   assign blank = 60 * freq / speed / 16;\n                            ^\n%Error: Exiting due to 2 warning(s)\n'
module band(
		input clk, left, right, up, down, rst_n,
		output reg [7:0] speed
		);
		always@(posedge clk or negedge rst_n)
		begin
			if(~rst_n)
				speed <= 60;
			else if(left)
				speed <= speed - 1;
			else if(right)
				speed <= speed + 1;
			else if(down)
				speed <= speed - 10;
			else if(up)
				speed <= speed + 10;
		end
endmodule
module band(
		input clk, left, right, up, down, rst_n,
		output reg [7:0] speed
		);

		always@(posedge clk or negedge rst_n)
		begin
			if(~rst_n)
				speed <= 60;
			else if(left)
				speed <= speed - 1;
			else if(right)
				speed <= speed + 1;
			else if(down)
				speed <= speed - 10;
			else if(up)
				speed <= speed + 10;
		end
endmodule