data/full_repos/permissive/211634836/controller.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/211634836/controller.v:117: 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 \'animationclock\'\nmodule animationclock (input clk, output [7:0] animationcounter, output [7:0] stepclock);\n       ^~~~~~~~~~~~~~\n                                                                        : ... Top module \'ledcontroller\'\nmodule ledcontroller (\n       ^~~~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/211634836/controller.v:60: Operator SUB expects 32 or 16 bits on the RHS, but RHS\'s VARREF \'normalisedledindex\' generates 8 bits.\n                                                                    : ... In instance ledcontroller.thecolourcalculator\n    { colmuxr, throwaway } <= usera * normalisedledindex + userb * (255-normalisedledindex);\n                                                                       ^\n%Warning-WIDTH: data/full_repos/permissive/211634836/controller.v:64: Operator SUB expects 32 or 16 bits on the RHS, but RHS\'s VARREF \'normalisedledindex\' generates 8 bits.\n                                                                    : ... In instance ledcontroller.thecolourcalculator\n    { colmuxr, throwaway } <= usera * normalisedledindex + userb * (255-normalisedledindex);\n                                                                       ^\n%Warning-WIDTH: data/full_repos/permissive/211634836/controller.v:229: Operator LT expects 11 bits on the RHS, but RHS\'s VARREF \'glittervolume\' generates 8 bits.\n                                                                     : ... In instance ledcontroller\n      glitterpos[glitteri] <= (lfsrout<glittervolume);\n                                      ^\n%Warning-WIDTH: data/full_repos/permissive/211634836/controller.v:244: Operator ADD expects 8 bits on the LHS, but LHS\'s SEL generates 2 bits.\n                                                                     : ... In instance ledcontroller\n    colindex[1:0] <= stepclock[1:0] + ledindex;\n                                    ^\n%Warning-WIDTH: data/full_repos/permissive/211634836/controller.v:244: Operator ASSIGNDLY expects 2 bits on the Assign RHS, but Assign RHS\'s ADD generates 8 bits.\n                                                                     : ... In instance ledcontroller\n    colindex[1:0] <= stepclock[1:0] + ledindex;\n                  ^~\n%Warning-WIDTH: data/full_repos/permissive/211634836/controller.v:286: Operator ASSIGNDLY expects 8 bits on the Assign RHS, but Assign RHS\'s SUB generates 32 or 16 bits.\n                                                                     : ... In instance ledcontroller\n      proximity <= 256-(proxa/4);\n                ^~\n%Warning-WIDTH: data/full_repos/permissive/211634836/controller.v:309: Operator ASSIGNDLY expects 8 bits on the Assign RHS, but Assign RHS\'s SEL generates 9 bits.\n                                                                     : ... In instance ledcontroller\n    rainbowpos_mux <= rainbowlookup[normalisedledindex][16:8];\n                   ^~\n%Error: Exiting due to 8 warning(s)\n'
module lfsr (
	output [10:0] out,
	input clk
	);

	wire linear_feedback;

	reg [15:0] lfsrreg;

	assign linear_feedback = !(lfsrreg[15] ^ lfsrreg[13] ^ lfsrreg[12] ^ lfsrreg[10]);
	assign out = lfsrreg[10:0];

	always @(posedge clk) begin
		lfsrreg <= {lfsrreg[14:0], linear_feedback};
	end 

endmodule
module lfsr (
	output [10:0] out,
	input clk
	);


	wire linear_feedback;

	reg [15:0] lfsrreg;

	assign linear_feedback = !(lfsrreg[15] ^ lfsrreg[13] ^ lfsrreg[12] ^ lfsrreg[10]);
	assign out = lfsrreg[10:0];

	always @(posedge clk) begin
		lfsrreg <= {lfsrreg[14:0], linear_feedback};
	end 

endmodule