data/full_repos/permissive/136603341/DE0_VGA.v
1: b'%Warning-WIDTH: data/full_repos/permissive/136603341/DE0_VGA.v:208: Operator ASSIGNW expects 15 bits on the Assign RHS, but Assign RHS\'s CONST \'16\'bzzzzzzzzzzzzzzzz\' generates 16 bits.\n                                                                  : ... In instance DE0_VGA\nassign   FL_DQ   = 16\'hzzzz;\n                 ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:266: Cannot find file containing module: \'VGA_CLK\'\nVGA_CLK  u1\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/136603341,data/full_repos/permissive/136603341/VGA_CLK\n             data/full_repos/permissive/136603341,data/full_repos/permissive/136603341/VGA_CLK.v\n             data/full_repos/permissive/136603341,data/full_repos/permissive/136603341/VGA_CLK.sv\n             VGA_CLK\n             VGA_CLK.v\n             VGA_CLK.sv\n             obj_dir/VGA_CLK\n             obj_dir/VGA_CLK.v\n             obj_dir/VGA_CLK.sv\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:271: Cannot find file containing module: \'VGA_Ctrl\'\nVGA_Ctrl u2\n^~~~~~~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:292: Cannot find file containing module: \'VGA_Display\'\nVGA_Display u3\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:315: Cannot find file containing module: \'KeyBoard\'\nKeyBoard u4 (    \n^~~~~~~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:323: Cannot find file containing module: \'Slider\'\nSlider u5 (  \n^~~~~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:343: Cannot find file containing module: \'Ball\'\nBall u6 (\n^~~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:352: Cannot find file containing module: \'Crash\'\nCrash u7 (\n^~~~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:370: Cannot find file containing module: \'Level_CTRL\'\nLevel_CTRL u8(\n^~~~~~~~~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:384: Cannot find file containing module: \'LED\'\nLED u9(\n^~~\n%Error: data/full_repos/permissive/136603341/DE0_VGA.v:390: Cannot find file containing module: \'iic\'\niic u10(\n^~~\n%Error: Exiting due to 10 error(s), 1 warning(s)\n'
module DE0_VGA
	(

		CLOCK_50,
		CLOCK_50_2,

		BUTTON,

		SW,

		HEX0_D,
		HEX0_DP,
		HEX1_D,
		HEX1_DP,
		HEX2_D,
		HEX2_DP,
		HEX3_D,
		HEX3_DP,

		LEDG,

		UART_TXD,
		UART_RXD,
		UART_CTS,
		UART_RTS,

		DRAM_DQ,
		DRAM_ADDR,
		DRAM_LDQM,
		DRAM_UDQM,
		DRAM_WE_N,
		DRAM_CAS_N,
		DRAM_RAS_N,
		DRAM_CS_N,
		DRAM_BA_0,
		DRAM_BA_1,
		DRAM_CLK,
		DRAM_CKE,

		FL_DQ,
		FL_DQ15_AM1,
		FL_ADDR,
		FL_WE_N,
		FL_RST_N,
		FL_OE_N,
		FL_CE_N,
		FL_WP_N,
		FL_BYTE_N,
		FL_RY,

		LCD_BLON,
		LCD_RW,
		LCD_EN,
		LCD_RS,
		LCD_DATA,

		SD_DAT0,
		SD_DAT3,
		SD_CMD,
		SD_CLK,
		SD_WP_N,

		PS2_KBDAT,
		PS2_KBCLK,
		PS2_MSDAT,
		PS2_MSCLK,

		VGA_HS,
		VGA_VS,
		VGA_R,
		VGA_G,
		VGA_B,

		GPIO0_CLKIN,
		GPIO0_CLKOUT,
		GPIO0_D,
		GPIO1_CLKIN,
		GPIO1_CLKOUT,
		GPIO1_D
	);


input			CLOCK_50;
input			CLOCK_50_2;

input	[2:0]	BUTTON;

input	[9:0]	SW;

output	[6:0]	HEX0_D;
output			HEX0_DP;
output	[6:0]	HEX1_D;
output			HEX1_DP;
output	[6:0]	HEX2_D;
output			HEX2_DP;
output	[6:0]	HEX3_D;
output			HEX3_DP;

output	[9:0]	LEDG;

output			UART_TXD;
input			UART_RXD;
output			UART_CTS;
input			UART_RTS;

inout	[15:0]	DRAM_DQ;
output	[12:0]	DRAM_ADDR;
output			DRAM_LDQM;
output			DRAM_UDQM;
output			DRAM_WE_N;
output			DRAM_CAS_N;
output			DRAM_RAS_N;
output			DRAM_CS_N;
output			DRAM_BA_0;
output			DRAM_BA_1;
output			DRAM_CLK;
output			DRAM_CKE;

inout	[14:0]	FL_DQ;
inout			FL_DQ15_AM1;
output	[21:0]	FL_ADDR;
output			FL_WE_N;
output			FL_RST_N;
output			FL_OE_N;
output			FL_CE_N;
output			FL_WP_N;
output			FL_BYTE_N;
input			FL_RY;

inout	[7:0]	LCD_DATA;
output			LCD_BLON;
output			LCD_RW;
output			LCD_EN;
output			LCD_RS;

inout			SD_DAT0;
inout			SD_DAT3;
inout			SD_CMD;
output			SD_CLK;
input			SD_WP_N;

inout		 	PS2_KBDAT;
inout			PS2_KBCLK;
inout		 	PS2_MSDAT;
inout			PS2_MSCLK;

output			VGA_HS;
output			VGA_VS;
output	[3:0]	VGA_R;
output	[3:0]	VGA_G;
output	[3:0]	VGA_B;

input	[1:0]	GPIO0_CLKIN;
output	[1:0]	GPIO0_CLKOUT;
inout	[31:0]	GPIO0_D;
input	[1:0]	GPIO1_CLKIN;
output	[1:0]	GPIO1_CLKOUT;
inout	[31:0]	GPIO1_D;





assign			DRAM_DQ			=	16'hzzzz;
assign			FL_DQ			=	16'hzzzz;
assign			LCD_DATA		=	8'hzz;
assign			SD_DAT0			=	1'hz;
assign			SD_DAT3			=	1'hz;
assign			SD_CMD			=	1'hz;
assign			PS2_KBDAT		=	1'hz;
assign			PS2_KBCLK		=	1'hz;
assign			PS2_MSDAT		=	1'hz;
assign			PS2_MSCLK		=	1'hz;
assign			GPIO0_D			=	32'hzzzzzzzz;
assign			GPIO1_D			=	32'hzzzzzzzz;


assign			HEX0_DP			=	1'h1;
assign			HEX1_D			=	7'h7F;
assign			HEX1_DP			=	1'h1;
assign			HEX2_D			=	7'h7F;
assign			HEX2_DP			=	1'h1;
assign			HEX3_D			=	7'h7F;
assign			HEX3_DP			=	1'h1;

assign			LEDG			=	10'h000;

wire			VGA_CTRL_CLK;
wire	[9:0]	mVGA_X;
wire	[9:0]	mVGA_Y;
wire	[9:0]	mVGA_R;
wire	[9:0]	mVGA_G;
wire	[9:0]	mVGA_B;

wire	[9:0]	sVGA_R;
wire	[9:0]	sVGA_G;
wire	[9:0]	sVGA_B;
assign	VGA_R	=	sVGA_R[3:0];
assign	VGA_G	=	sVGA_G[3:0];
assign	VGA_B	=	sVGA_B[3:0];




wire [9:0] slider_x;
wire [9:0] slider_y;
wire [9:0] ball_x;
wire [9:0] ball_y;
wire [4:0] control;

wire [3:0] crash;
wire [299:0] state_flag;
wire [1:0]	level;
wire [1:0]	slider_flag;
wire special_block;
wire special_attacked;
wire orst;
wire BallDie;
wire VGA_VS_PAUSE;
wire [7:0] odata_test;


VGA_CLK		u1
		(	.inclk0(CLOCK_50),
			.c0(VGA_CTRL_CLK)
		);

VGA_Ctrl	u2
		(
			.oCurrent_X(mVGA_X),
			.oCurrent_Y(mVGA_Y),
			.iRed(mVGA_R),
			.iGreen(mVGA_G),
			.iBlue(mVGA_B),

			.oVGA_R(sVGA_R),
			.oVGA_G(sVGA_G),
			.oVGA_B(sVGA_B),
			.oVGA_HS(VGA_HS),
			.oVGA_VS(VGA_VS),
			.oVGA_SYNC(),
			.oVGA_BLANK(),
			.oVGA_CLOCK(),

			.iCLK(VGA_CTRL_CLK),
			.iRST_N(BUTTON[0])
		);

VGA_Display	u3
		(
			.oRed(mVGA_R),
			.oGreen(mVGA_G),
			.oBlue(mVGA_B),
			.oVGA_VS(VGA_VS_PAUSE),
			.iVGA_X(mVGA_X),
			.iVGA_Y(mVGA_Y),
			.iVGA_CLK(VGA_CTRL_CLK),

			.iRST_n(orst),

			.iSlider_x(slider_x),
			.iSlider_y(slider_y),
			.iBall_x(ball_x),
			.iBall_y(ball_y),
			.iState_flag(state_flag),
			.iSlider_flag(slider_flag),
			.iSpecial_block(special_block),
			.iSW(SW[9]),
			.iVGA_VS(VGA_VS)
);

KeyBoard u4 (    
	.clk(CLOCK_50),
    .rst_n(orst),
    .data_in(PS2_KBDAT),
    .clk_in(PS2_KBCLK),                       
    .oControl(control)           
);

Slider u5 (
	.iVGA_CLK(VGA_VS_PAUSE),
    .iRST_n(orst),
    




	.iSlider_go(odata_test[0] || control[1]),
    .iSlider_back(odata_test[1] || control[2]),
    .iSlider_up(control[4]),
    .iSlider_down(control[3]),

	.iSpecial_block(special_block),

	.oSlider_x(slider_x),
    .oSlider_y(slider_y)

);

Ball u6 (
	.iVGA_CLK(VGA_VS_PAUSE),
	.iRST_n(orst),
	.iCrash(crash),
	.oBall_x(ball_x),
    .oBall_y(ball_y)
	
);

Crash u7 (
	.clk(VGA_VS_PAUSE),
	.rst(orst),

	.iLevel(level),
	.iSlider_x(slider_x),
	.iSlider_y(slider_y),
	.iBall_x(ball_x),
	.iBall_y(ball_y),
	.iSlider_flag(slider_flag),
	.iSpecial_block(special_block),
	.oCrash(crash),
	.oState_flag(state_flag),
	.oSpecial_attacked(special_attacked),
	.oBallDie(BallDie)

);

Level_CTRL u8(
	.iState_flag(state_flag),
	.iLevel_Up(BUTTON[2]),
	.iLevel_Down(BUTTON[1]),
	.iCLK(VGA_CTRL_CLK),
	.iRST(BUTTON[0]),
	.iBallDie(BallDie),
	.iSpecial_attacked(special_attacked),
	.oLevel(level),
	.oSlider_flag(slider_flag),
	.oSpecial_block(special_block),
	.oRST(orst)
);

LED u9(
	.iCLK(VGA_CTRL_CLK),
	.iLevel(level),
	.oLED(HEX0_D)
);

iic u10(
	.CLOCK_50(CLOCK_50),
	.rst_n(orst),
	.sda(GPIO0_D[0]),
	.scl(GPIO0_D[1]),
	.sw1(SW[1]),
	.sw2(SW[2]),
	.data_test(odata_test)
);

endmodule
module DE0_VGA
	(

		CLOCK_50,
		CLOCK_50_2,

		BUTTON,

		SW,

		HEX0_D,
		HEX0_DP,
		HEX1_D,
		HEX1_DP,
		HEX2_D,
		HEX2_DP,
		HEX3_D,
		HEX3_DP,

		LEDG,

		UART_TXD,
		UART_RXD,
		UART_CTS,
		UART_RTS,

		DRAM_DQ,
		DRAM_ADDR,
		DRAM_LDQM,
		DRAM_UDQM,
		DRAM_WE_N,
		DRAM_CAS_N,
		DRAM_RAS_N,
		DRAM_CS_N,
		DRAM_BA_0,
		DRAM_BA_1,
		DRAM_CLK,
		DRAM_CKE,

		FL_DQ,
		FL_DQ15_AM1,
		FL_ADDR,
		FL_WE_N,
		FL_RST_N,
		FL_OE_N,
		FL_CE_N,
		FL_WP_N,
		FL_BYTE_N,
		FL_RY,

		LCD_BLON,
		LCD_RW,
		LCD_EN,
		LCD_RS,
		LCD_DATA,

		SD_DAT0,
		SD_DAT3,
		SD_CMD,
		SD_CLK,
		SD_WP_N,

		PS2_KBDAT,
		PS2_KBCLK,
		PS2_MSDAT,
		PS2_MSCLK,

		VGA_HS,
		VGA_VS,
		VGA_R,
		VGA_G,
		VGA_B,

		GPIO0_CLKIN,
		GPIO0_CLKOUT,
		GPIO0_D,
		GPIO1_CLKIN,
		GPIO1_CLKOUT,
		GPIO1_D
	);



input			CLOCK_50;
input			CLOCK_50_2;

input	[2:0]	BUTTON;

input	[9:0]	SW;

output	[6:0]	HEX0_D;
output			HEX0_DP;
output	[6:0]	HEX1_D;
output			HEX1_DP;
output	[6:0]	HEX2_D;
output			HEX2_DP;
output	[6:0]	HEX3_D;
output			HEX3_DP;

output	[9:0]	LEDG;

output			UART_TXD;
input			UART_RXD;
output			UART_CTS;
input			UART_RTS;

inout	[15:0]	DRAM_DQ;
output	[12:0]	DRAM_ADDR;
output			DRAM_LDQM;
output			DRAM_UDQM;
output			DRAM_WE_N;
output			DRAM_CAS_N;
output			DRAM_RAS_N;
output			DRAM_CS_N;
output			DRAM_BA_0;
output			DRAM_BA_1;
output			DRAM_CLK;
output			DRAM_CKE;

inout	[14:0]	FL_DQ;
inout			FL_DQ15_AM1;
output	[21:0]	FL_ADDR;
output			FL_WE_N;
output			FL_RST_N;
output			FL_OE_N;
output			FL_CE_N;
output			FL_WP_N;
output			FL_BYTE_N;
input			FL_RY;

inout	[7:0]	LCD_DATA;
output			LCD_BLON;
output			LCD_RW;
output			LCD_EN;
output			LCD_RS;

inout			SD_DAT0;
inout			SD_DAT3;
inout			SD_CMD;
output			SD_CLK;
input			SD_WP_N;

inout		 	PS2_KBDAT;
inout			PS2_KBCLK;
inout		 	PS2_MSDAT;
inout			PS2_MSCLK;

output			VGA_HS;
output			VGA_VS;
output	[3:0]	VGA_R;
output	[3:0]	VGA_G;
output	[3:0]	VGA_B;

input	[1:0]	GPIO0_CLKIN;
output	[1:0]	GPIO0_CLKOUT;
inout	[31:0]	GPIO0_D;
input	[1:0]	GPIO1_CLKIN;
output	[1:0]	GPIO1_CLKOUT;
inout	[31:0]	GPIO1_D;





assign			DRAM_DQ			=	16'hzzzz;
assign			FL_DQ			=	16'hzzzz;
assign			LCD_DATA		=	8'hzz;
assign			SD_DAT0			=	1'hz;
assign			SD_DAT3			=	1'hz;
assign			SD_CMD			=	1'hz;
assign			PS2_KBDAT		=	1'hz;
assign			PS2_KBCLK		=	1'hz;
assign			PS2_MSDAT		=	1'hz;
assign			PS2_MSCLK		=	1'hz;
assign			GPIO0_D			=	32'hzzzzzzzz;
assign			GPIO1_D			=	32'hzzzzzzzz;


assign			HEX0_DP			=	1'h1;
assign			HEX1_D			=	7'h7F;
assign			HEX1_DP			=	1'h1;
assign			HEX2_D			=	7'h7F;
assign			HEX2_DP			=	1'h1;
assign			HEX3_D			=	7'h7F;
assign			HEX3_DP			=	1'h1;

assign			LEDG			=	10'h000;

wire			VGA_CTRL_CLK;
wire	[9:0]	mVGA_X;
wire	[9:0]	mVGA_Y;
wire	[9:0]	mVGA_R;
wire	[9:0]	mVGA_G;
wire	[9:0]	mVGA_B;

wire	[9:0]	sVGA_R;
wire	[9:0]	sVGA_G;
wire	[9:0]	sVGA_B;
assign	VGA_R	=	sVGA_R[3:0];
assign	VGA_G	=	sVGA_G[3:0];
assign	VGA_B	=	sVGA_B[3:0];




wire [9:0] slider_x;
wire [9:0] slider_y;
wire [9:0] ball_x;
wire [9:0] ball_y;
wire [4:0] control;

wire [3:0] crash;
wire [299:0] state_flag;
wire [1:0]	level;
wire [1:0]	slider_flag;
wire special_block;
wire special_attacked;
wire orst;
wire BallDie;
wire VGA_VS_PAUSE;
wire [7:0] odata_test;


VGA_CLK		u1
		(	.inclk0(CLOCK_50),
			.c0(VGA_CTRL_CLK)
		);

VGA_Ctrl	u2
		(
			.oCurrent_X(mVGA_X),
			.oCurrent_Y(mVGA_Y),
			.iRed(mVGA_R),
			.iGreen(mVGA_G),
			.iBlue(mVGA_B),

			.oVGA_R(sVGA_R),
			.oVGA_G(sVGA_G),
			.oVGA_B(sVGA_B),
			.oVGA_HS(VGA_HS),
			.oVGA_VS(VGA_VS),
			.oVGA_SYNC(),
			.oVGA_BLANK(),
			.oVGA_CLOCK(),

			.iCLK(VGA_CTRL_CLK),
			.iRST_N(BUTTON[0])
		);

VGA_Display	u3
		(
			.oRed(mVGA_R),
			.oGreen(mVGA_G),
			.oBlue(mVGA_B),
			.oVGA_VS(VGA_VS_PAUSE),
			.iVGA_X(mVGA_X),
			.iVGA_Y(mVGA_Y),
			.iVGA_CLK(VGA_CTRL_CLK),

			.iRST_n(orst),

			.iSlider_x(slider_x),
			.iSlider_y(slider_y),
			.iBall_x(ball_x),
			.iBall_y(ball_y),
			.iState_flag(state_flag),
			.iSlider_flag(slider_flag),
			.iSpecial_block(special_block),
			.iSW(SW[9]),
			.iVGA_VS(VGA_VS)
);

KeyBoard u4 (    
	.clk(CLOCK_50),
    .rst_n(orst),
    .data_in(PS2_KBDAT),
    .clk_in(PS2_KBCLK),                       
    .oControl(control)           
);

Slider u5 (
	.iVGA_CLK(VGA_VS_PAUSE),
    .iRST_n(orst),
    




	.iSlider_go(odata_test[0] || control[1]),
    .iSlider_back(odata_test[1] || control[2]),
    .iSlider_up(control[4]),
    .iSlider_down(control[3]),

	.iSpecial_block(special_block),

	.oSlider_x(slider_x),
    .oSlider_y(slider_y)

);

Ball u6 (
	.iVGA_CLK(VGA_VS_PAUSE),
	.iRST_n(orst),
	.iCrash(crash),
	.oBall_x(ball_x),
    .oBall_y(ball_y)
	
);

Crash u7 (
	.clk(VGA_VS_PAUSE),
	.rst(orst),

	.iLevel(level),
	.iSlider_x(slider_x),
	.iSlider_y(slider_y),
	.iBall_x(ball_x),
	.iBall_y(ball_y),
	.iSlider_flag(slider_flag),
	.iSpecial_block(special_block),
	.oCrash(crash),
	.oState_flag(state_flag),
	.oSpecial_attacked(special_attacked),
	.oBallDie(BallDie)

);

Level_CTRL u8(
	.iState_flag(state_flag),
	.iLevel_Up(BUTTON[2]),
	.iLevel_Down(BUTTON[1]),
	.iCLK(VGA_CTRL_CLK),
	.iRST(BUTTON[0]),
	.iBallDie(BallDie),
	.iSpecial_attacked(special_attacked),
	.oLevel(level),
	.oSlider_flag(slider_flag),
	.oSpecial_block(special_block),
	.oRST(orst)
);

LED u9(
	.iCLK(VGA_CTRL_CLK),
	.iLevel(level),
	.oLED(HEX0_D)
);

iic u10(
	.CLOCK_50(CLOCK_50),
	.rst_n(orst),
	.sda(GPIO0_D[0]),
	.scl(GPIO0_D[1]),
	.sw1(SW[1]),
	.sw2(SW[2]),
	.data_test(odata_test)
);

endmodule