data/full_repos/permissive/430260837/VGAControl.v
1: b'%Error: data/full_repos/permissive/430260837/VGAControl.v:212: Cannot find file containing module: \'ClockDivider\'\n ClockDivider clkDiv (clk, clkOut);\n ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/430260837,data/full_repos/permissive/430260837/ClockDivider\n             data/full_repos/permissive/430260837,data/full_repos/permissive/430260837/ClockDivider.v\n             data/full_repos/permissive/430260837,data/full_repos/permissive/430260837/ClockDivider.sv\n             ClockDivider\n             ClockDivider.v\n             ClockDivider.sv\n             obj_dir/ClockDivider\n             obj_dir/ClockDivider.v\n             obj_dir/ClockDivider.sv\n%Error: data/full_repos/permissive/430260837/VGAControl.v:213: Cannot find file containing module: \'ClockDividerSixty\'\n ClockDividerSixty clockTwo(clk, clk50);\n ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:217: Cannot find file containing module: \'DesClockDivider\'\n DesClockDivider desClock1 (clk, startDes1, desClk1);\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:218: Cannot find file containing module: \'DesClockDivider\'\n DesClockDivider desClock2 (clk, startDes2, desClk2);\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:219: Cannot find file containing module: \'DesClockDivider\'\n DesClockDivider desClock3 (clk, startDes3, desClk3);\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:220: Cannot find file containing module: \'DesClockDivider\'\n DesClockDivider desClock4 (clk, startDes4, desClk4);\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:221: Cannot find file containing module: \'DesClockDivider\'\n DesClockDivider desClock5 (clk, startDes5, desClk5);\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:225: Cannot find file containing module: \'HorizentalVerticalControl\'\n HorizentalVerticalControl  HVControl (clkOut, HCounter, VCounter);\n ^~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:237: Cannot find file containing module: \'DrawDefense\'\n DrawDefense dDefense (HCounter, VCounter, drawDefenseRed, drawDefenseGreen, drawDefenseBlue);\n ^~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:238: Cannot find file containing module: \'DrawPlanet\'\n DrawPlanet dPlanet (HCounter, VCounter, drawPlanetRed, drawPlanetGreen, drawPlanetBlue);\n ^~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:242: Cannot find file containing module: \'movingSquare\'\n movingSquare squareMoving1 (HCounter, VCounter, clk50, switch1, desClk1, 10\'d208, enable1, reset, startDes1, drawSquare1, destroyed1, dH1, dV1, scoreToggle1, healthToggle1);\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:243: Cannot find file containing module: \'movingSquare\'\n movingSquare squareMoving2 (HCounter, VCounter, clk50, switch2, desClk2, 10\'d336, enable2, reset, startDes2, drawSquare2, destroyed2, dH2, dV2, scoreToggle2, healthToggle2);\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:244: Cannot find file containing module: \'movingSquare\'\n movingSquare squareMoving3 (HCounter, VCounter, clk50, switch3, desClk3, 10\'d464, enable3, reset, startDes3, drawSquare3, destroyed3, dH3, dV3, scoreToggle3, healthToggle3);\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:245: Cannot find file containing module: \'movingSquare\'\n movingSquare squareMoving4 (HCounter, VCounter, clk50, switch4, desClk4, 10\'d592, enable4, reset, startDes4, drawSquare4, destroyed4, dH4, dV4, scoreToggle4, healthToggle4);\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:246: Cannot find file containing module: \'movingSquare\'\n movingSquare squareMoving5 (HCounter, VCounter, clk50, switch5, desClk5, 10\'d720, enable5, reset, startDes5, drawSquare5, destroyed5, dH5, dV5, scoreToggle5, healthToggle5);\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:250: Cannot find file containing module: \'destroyAnimation\'\n destroyAnimation destroy1 (HCounter, VCounter, destroyed1, dH1, dV1, desClk1, drawDestroyRed1);\n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:251: Cannot find file containing module: \'destroyAnimation\'\n destroyAnimation destroy2 (HCounter, VCounter, destroyed2, dH2, dV2, desClk2, drawDestroyRed2);\n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:252: Cannot find file containing module: \'destroyAnimation\'\n destroyAnimation destroy3 (HCounter, VCounter, destroyed3, dH3, dV3, desClk3, drawDestroyRed3);\n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:253: Cannot find file containing module: \'destroyAnimation\'\n destroyAnimation destroy4 (HCounter, VCounter, destroyed4, dH4, dV4, desClk4, drawDestroyRed4);\n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:254: Cannot find file containing module: \'destroyAnimation\'\n destroyAnimation destroy5 (HCounter, VCounter, destroyed5, dH5, dV5, desClk5, drawDestroyRed5);\n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:258: Cannot find file containing module: \'scoreSet\'\n scoreSet score (scoreToggle, reset, scoreCounter1, scoreCounter2);\n ^~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:259: Cannot find file containing module: \'healthSetter\'\n healthSetter healthyfood (healthToggle, reset, healthCounter1, healthCounter2, enable1, enable2, enable3, enable4, enable5);\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:261: Cannot find file containing module: \'segmentDisplay\'\n segmentDisplay ScoreLSB (scoreCounter1, hexZero);\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:262: Cannot find file containing module: \'segmentDisplay\'\n segmentDisplay ScoreMSB (scoreCounter2, hexOne);\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:264: Cannot find file containing module: \'segmentDisplay\'\n segmentDisplay healthLSB(healthCounter1, hexThree);\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:265: Cannot find file containing module: \'segmentDisplay\'\n segmentDisplay healthMSB(healthCounter2, hexFour);\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/430260837/VGAControl.v:269: Cannot find file containing module: \'displayL\'\n displayL LoseScreen(enable1, hexFive);\n ^~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/430260837/VGAControl.v:274: Logical Operator LOGOR expects 1 bit on the LHS, but LHS\'s VARREF \'healthToggle1\' generates 4 bits.\n                                                                     : ... In instance VGAControl\n assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;\n                                     ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/430260837/VGAControl.v:274: Logical Operator LOGOR expects 1 bit on the RHS, but RHS\'s VARREF \'healthToggle2\' generates 4 bits.\n                                                                     : ... In instance VGAControl\n assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;\n                                     ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/VGAControl.v:274: Logical Operator LOGOR expects 1 bit on the RHS, but RHS\'s VARREF \'healthToggle3\' generates 4 bits.\n                                                                     : ... In instance VGAControl\n assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;\n                                                      ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/VGAControl.v:274: Logical Operator LOGOR expects 1 bit on the RHS, but RHS\'s VARREF \'healthToggle4\' generates 4 bits.\n                                                                     : ... In instance VGAControl\n assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;\n                                                                       ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/VGAControl.v:274: Logical Operator LOGOR expects 1 bit on the RHS, but RHS\'s VARREF \'healthToggle5\' generates 4 bits.\n                                                                     : ... In instance VGAControl\n assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;\n                                                                                        ^~\n%Warning-WIDTH: data/full_repos/permissive/430260837/VGAControl.v:274: Operator ASSIGNW expects 10 bits on the Assign RHS, but Assign RHS\'s LOGOR generates 1 bits.\n                                                                     : ... In instance VGAControl\n assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;\n                     ^\n%Error: Exiting due to 27 error(s), 6 warning(s)\n'
module VGAControl(
	input clk,
	input clk2,
	
	input reset,
	
	input switch1,
	input switch2,
	input switch3,
	input switch4,
	input switch5,
	
	output HSync,
	output VSync,
	
	output [3:0] Red,
	output [3:0] Green,
	output [3:0] Blue, 
	
	output [6:0] hexZero, 
	output [6:0] hexOne, 
	output [6:0] hexFour, 
	output [6:0] hexThree, 
	output [6:0] hexFive
);
	 



	



	





	




	




	


	


	





	







	







	







	







	

	







	

	wire [9:0] HCounter;
	wire [9:0] VCounter;
	
	wire drawRed;
	wire drawGreen;
	wire drawBlue;

	

	wire clkOut;
	wire clk50;

	

	wire drawSquare;
	wire drawSquare1;
	wire drawSquare2;
	wire drawSquare3;
	wire drawSquare4;
	wire drawSquare5;
	
	wire enable1;
	wire enable2;
	wire enable3;
	wire enable4;
	wire enable5;

	

	wire desClk1;
	wire desClk2;
	wire desClk3;
	wire desClk4;
	wire desClk5;
	
	wire startDes1;
	wire startDes2;
	wire startDes3;
	wire startDes4;
	wire startDes5;
	
	wire destroyed1;				
	wire destroyed2;
	wire destroyed3;
	wire destroyed4;
	wire destroyed5;
	
	wire [32:0] dH1;
	wire [32:0] dH2;
	wire [32:0] dH3;
	wire [32:0] dH4;
	wire [32:0] dH5;
	
	wire [32:0] dV1;
	wire [32:0] dV2;
	wire [32:0] dV3;
	wire [32:0] dV4;
	wire [32:0] dV5;
	
	wire drawDestroyRed;
	wire drawDestroyRed1;
	wire drawDestroyRed2;
	wire drawDestroyRed3;
	wire drawDestroyRed4;
	wire drawDestroyRed5;
	
	wire drawDefenseRed;
	wire drawDefenseGreen;
	wire drawDefenseBlue;

	
	

	wire drawPlanetRed;
	wire drawPlanetGreen;
	wire drawPlanetBlue;

	

	wire [3:0] scoreCounter1;
	wire [3:0] scoreCounter2;
	
	wire scoreToggle;
	wire scoreToggle1; 
	wire scoreToggle2;
	wire scoreToggle3;
	wire scoreToggle4;
	wire scoreToggle5;

	

	wire [3:0] healthCounter1;
	wire [3:0] healthCounter2;
	
	wire [9:0] healthToggle;
	wire [3:0] healthToggle1;
	wire [3:0] healthToggle2;
	wire [3:0] healthToggle3;
	wire [3:0] healthToggle4;
	wire [3:0] healthToggle5;

	

	ClockDivider clkDiv (clk, clkOut);
	ClockDividerSixty clockTwo(clk, clk50);

	

	DesClockDivider desClock1 (clk, startDes1, desClk1);
	DesClockDivider desClock2 (clk, startDes2, desClk2);
	DesClockDivider desClock3 (clk, startDes3, desClk3);
	DesClockDivider desClock4 (clk, startDes4, desClk4);
	DesClockDivider desClock5 (clk, startDes5, desClk5);

	

	HorizentalVerticalControl 	HVControl (clkOut, HCounter, VCounter);

	

	assign HSync = (HCounter <= 95 && HCounter >= 0) ? 1 : 0;
	assign VSync = (VCounter <= 1 && VCounter >= 0) ? 1 : 0;

	



	
	DrawDefense dDefense (HCounter, VCounter, drawDefenseRed, drawDefenseGreen, drawDefenseBlue);
	DrawPlanet dPlanet (HCounter, VCounter, drawPlanetRed, drawPlanetGreen, drawPlanetBlue);

	

	movingSquare squareMoving1 (HCounter, VCounter, clk50, switch1, desClk1, 10'd208, enable1, reset, startDes1, drawSquare1, destroyed1, dH1, dV1, scoreToggle1, healthToggle1);
	movingSquare squareMoving2 (HCounter, VCounter, clk50, switch2, desClk2, 10'd336, enable2, reset, startDes2, drawSquare2, destroyed2, dH2, dV2, scoreToggle2, healthToggle2);
	movingSquare squareMoving3 (HCounter, VCounter, clk50, switch3, desClk3, 10'd464, enable3, reset, startDes3, drawSquare3, destroyed3, dH3, dV3, scoreToggle3, healthToggle3);
	movingSquare squareMoving4 (HCounter, VCounter, clk50, switch4, desClk4, 10'd592, enable4, reset, startDes4, drawSquare4, destroyed4, dH4, dV4, scoreToggle4, healthToggle4);
	movingSquare squareMoving5 (HCounter, VCounter, clk50, switch5, desClk5, 10'd720, enable5, reset, startDes5, drawSquare5, destroyed5, dH5, dV5, scoreToggle5, healthToggle5);

	

	destroyAnimation destroy1 (HCounter, VCounter, destroyed1, dH1, dV1, desClk1, drawDestroyRed1);
	destroyAnimation destroy2 (HCounter, VCounter, destroyed2, dH2, dV2, desClk2, drawDestroyRed2);
	destroyAnimation destroy3 (HCounter, VCounter, destroyed3, dH3, dV3, desClk3, drawDestroyRed3);
	destroyAnimation destroy4 (HCounter, VCounter, destroyed4, dH4, dV4, desClk4, drawDestroyRed4);
	destroyAnimation destroy5 (HCounter, VCounter, destroyed5, dH5, dV5, desClk5, drawDestroyRed5);

	

	scoreSet score (scoreToggle, reset, scoreCounter1, scoreCounter2);
	healthSetter healthyfood (healthToggle, reset, healthCounter1, healthCounter2, enable1, enable2, enable3, enable4, enable5);
	
	segmentDisplay ScoreLSB (scoreCounter1, hexZero);
	segmentDisplay ScoreMSB (scoreCounter2, hexOne);
	
	segmentDisplay healthLSB(healthCounter1, hexThree);
	segmentDisplay healthMSB(healthCounter2, hexFour);

	

	displayL LoseScreen(enable1, hexFive);

	

	assign scoreToggle = scoreToggle1 || scoreToggle2 || scoreToggle3 || scoreToggle4 || scoreToggle5;
	assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;
	
	assign drawDestroyRed = drawDestroyRed1 || drawDestroyRed2 || drawDestroyRed3 || drawDestroyRed4 || drawDestroyRed5;
	assign drawSquare = drawSquare1 ||drawSquare2 || drawSquare3 || drawSquare4 || drawSquare5;

	

	assign drawRed = drawDestroyRed || (!drawDestroyRed && drawDefenseRed) || (!drawDestroyRed && !drawDefenseRed && drawSquare) || (!drawDestroyRed && !drawDefenseRed && !drawSquare && drawPlanetRed);
	assign drawGreen = (!drawDestroyRed && drawDefenseGreen) || (!drawDestroyRed && !drawDefenseGreen && drawSquare) || (!drawDestroyRed && !drawDefenseGreen && !drawSquare && drawPlanetGreen);
	assign drawBlue = (!drawDestroyRed && drawDefenseBlue) || (!drawDestroyRed && !drawDefenseBlue && drawSquare) || (!drawDestroyRed && !drawDefenseBlue && !drawSquare && drawPlanetBlue);

	

	assign Red = (drawRed) ? 4'hF : 4'h0;
	assign Green = (drawGreen) ? 4'hF : 4'h0;
	assign Blue = (drawBlue) ? 4'hF : 4'h0;

	
endmodule
module VGAControl(
	input clk,
	input clk2,
	
	input reset,
	
	input switch1,
	input switch2,
	input switch3,
	input switch4,
	input switch5,
	
	output HSync,
	output VSync,
	
	output [3:0] Red,
	output [3:0] Green,
	output [3:0] Blue, 
	
	output [6:0] hexZero, 
	output [6:0] hexOne, 
	output [6:0] hexFour, 
	output [6:0] hexThree, 
	output [6:0] hexFive
);

	 



	



	





	




	




	


	


	





	







	







	







	







	

	







	

	wire [9:0] HCounter;
	wire [9:0] VCounter;
	
	wire drawRed;
	wire drawGreen;
	wire drawBlue;

	

	wire clkOut;
	wire clk50;

	

	wire drawSquare;
	wire drawSquare1;
	wire drawSquare2;
	wire drawSquare3;
	wire drawSquare4;
	wire drawSquare5;
	
	wire enable1;
	wire enable2;
	wire enable3;
	wire enable4;
	wire enable5;

	

	wire desClk1;
	wire desClk2;
	wire desClk3;
	wire desClk4;
	wire desClk5;
	
	wire startDes1;
	wire startDes2;
	wire startDes3;
	wire startDes4;
	wire startDes5;
	
	wire destroyed1;				
	wire destroyed2;
	wire destroyed3;
	wire destroyed4;
	wire destroyed5;
	
	wire [32:0] dH1;
	wire [32:0] dH2;
	wire [32:0] dH3;
	wire [32:0] dH4;
	wire [32:0] dH5;
	
	wire [32:0] dV1;
	wire [32:0] dV2;
	wire [32:0] dV3;
	wire [32:0] dV4;
	wire [32:0] dV5;
	
	wire drawDestroyRed;
	wire drawDestroyRed1;
	wire drawDestroyRed2;
	wire drawDestroyRed3;
	wire drawDestroyRed4;
	wire drawDestroyRed5;
	
	wire drawDefenseRed;
	wire drawDefenseGreen;
	wire drawDefenseBlue;

	
	

	wire drawPlanetRed;
	wire drawPlanetGreen;
	wire drawPlanetBlue;

	

	wire [3:0] scoreCounter1;
	wire [3:0] scoreCounter2;
	
	wire scoreToggle;
	wire scoreToggle1; 
	wire scoreToggle2;
	wire scoreToggle3;
	wire scoreToggle4;
	wire scoreToggle5;

	

	wire [3:0] healthCounter1;
	wire [3:0] healthCounter2;
	
	wire [9:0] healthToggle;
	wire [3:0] healthToggle1;
	wire [3:0] healthToggle2;
	wire [3:0] healthToggle3;
	wire [3:0] healthToggle4;
	wire [3:0] healthToggle5;

	

	ClockDivider clkDiv (clk, clkOut);
	ClockDividerSixty clockTwo(clk, clk50);

	

	DesClockDivider desClock1 (clk, startDes1, desClk1);
	DesClockDivider desClock2 (clk, startDes2, desClk2);
	DesClockDivider desClock3 (clk, startDes3, desClk3);
	DesClockDivider desClock4 (clk, startDes4, desClk4);
	DesClockDivider desClock5 (clk, startDes5, desClk5);

	

	HorizentalVerticalControl 	HVControl (clkOut, HCounter, VCounter);

	

	assign HSync = (HCounter <= 95 && HCounter >= 0) ? 1 : 0;
	assign VSync = (VCounter <= 1 && VCounter >= 0) ? 1 : 0;

	



	
	DrawDefense dDefense (HCounter, VCounter, drawDefenseRed, drawDefenseGreen, drawDefenseBlue);
	DrawPlanet dPlanet (HCounter, VCounter, drawPlanetRed, drawPlanetGreen, drawPlanetBlue);

	

	movingSquare squareMoving1 (HCounter, VCounter, clk50, switch1, desClk1, 10'd208, enable1, reset, startDes1, drawSquare1, destroyed1, dH1, dV1, scoreToggle1, healthToggle1);
	movingSquare squareMoving2 (HCounter, VCounter, clk50, switch2, desClk2, 10'd336, enable2, reset, startDes2, drawSquare2, destroyed2, dH2, dV2, scoreToggle2, healthToggle2);
	movingSquare squareMoving3 (HCounter, VCounter, clk50, switch3, desClk3, 10'd464, enable3, reset, startDes3, drawSquare3, destroyed3, dH3, dV3, scoreToggle3, healthToggle3);
	movingSquare squareMoving4 (HCounter, VCounter, clk50, switch4, desClk4, 10'd592, enable4, reset, startDes4, drawSquare4, destroyed4, dH4, dV4, scoreToggle4, healthToggle4);
	movingSquare squareMoving5 (HCounter, VCounter, clk50, switch5, desClk5, 10'd720, enable5, reset, startDes5, drawSquare5, destroyed5, dH5, dV5, scoreToggle5, healthToggle5);

	

	destroyAnimation destroy1 (HCounter, VCounter, destroyed1, dH1, dV1, desClk1, drawDestroyRed1);
	destroyAnimation destroy2 (HCounter, VCounter, destroyed2, dH2, dV2, desClk2, drawDestroyRed2);
	destroyAnimation destroy3 (HCounter, VCounter, destroyed3, dH3, dV3, desClk3, drawDestroyRed3);
	destroyAnimation destroy4 (HCounter, VCounter, destroyed4, dH4, dV4, desClk4, drawDestroyRed4);
	destroyAnimation destroy5 (HCounter, VCounter, destroyed5, dH5, dV5, desClk5, drawDestroyRed5);

	

	scoreSet score (scoreToggle, reset, scoreCounter1, scoreCounter2);
	healthSetter healthyfood (healthToggle, reset, healthCounter1, healthCounter2, enable1, enable2, enable3, enable4, enable5);
	
	segmentDisplay ScoreLSB (scoreCounter1, hexZero);
	segmentDisplay ScoreMSB (scoreCounter2, hexOne);
	
	segmentDisplay healthLSB(healthCounter1, hexThree);
	segmentDisplay healthMSB(healthCounter2, hexFour);

	

	displayL LoseScreen(enable1, hexFive);

	

	assign scoreToggle = scoreToggle1 || scoreToggle2 || scoreToggle3 || scoreToggle4 || scoreToggle5;
	assign healthToggle = healthToggle1 || healthToggle2 || healthToggle3 || healthToggle4 || healthToggle5;
	
	assign drawDestroyRed = drawDestroyRed1 || drawDestroyRed2 || drawDestroyRed3 || drawDestroyRed4 || drawDestroyRed5;
	assign drawSquare = drawSquare1 ||drawSquare2 || drawSquare3 || drawSquare4 || drawSquare5;

	

	assign drawRed = drawDestroyRed || (!drawDestroyRed && drawDefenseRed) || (!drawDestroyRed && !drawDefenseRed && drawSquare) || (!drawDestroyRed && !drawDefenseRed && !drawSquare && drawPlanetRed);
	assign drawGreen = (!drawDestroyRed && drawDefenseGreen) || (!drawDestroyRed && !drawDefenseGreen && drawSquare) || (!drawDestroyRed && !drawDefenseGreen && !drawSquare && drawPlanetGreen);
	assign drawBlue = (!drawDestroyRed && drawDefenseBlue) || (!drawDestroyRed && !drawDefenseBlue && drawSquare) || (!drawDestroyRed && !drawDefenseBlue && !drawSquare && drawPlanetBlue);

	

	assign Red = (drawRed) ? 4'hF : 4'h0;
	assign Green = (drawGreen) ? 4'hF : 4'h0;
	assign Blue = (drawBlue) ? 4'hF : 4'h0;

	
endmodule