data/full_repos/permissive/426823752/lab62.sv
1: b"%Error: data/full_repos/permissive/426823752/lab62.sv:102: Cannot find file containing module: 'HexDriver'\n HexDriver hex_driver4 (hex_num_4, HEX4[6:0]);\n ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/426823752,data/full_repos/permissive/426823752/HexDriver\n             data/full_repos/permissive/426823752,data/full_repos/permissive/426823752/HexDriver.v\n             data/full_repos/permissive/426823752,data/full_repos/permissive/426823752/HexDriver.sv\n             HexDriver\n             HexDriver.v\n             HexDriver.sv\n             obj_dir/HexDriver\n             obj_dir/HexDriver.v\n             obj_dir/HexDriver.sv\n%Error: data/full_repos/permissive/426823752/lab62.sv:105: Cannot find file containing module: 'HexDriver'\n HexDriver hex_driver3 (hex_num_3, HEX3[6:0]);\n ^~~~~~~~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:108: Cannot find file containing module: 'HexDriver'\n HexDriver hex_driver1 (hex_num_1, HEX1[6:0]);\n ^~~~~~~~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:111: Cannot find file containing module: 'HexDriver'\n HexDriver hex_driver0 (hex_num_0, HEX0[6:0]);\n ^~~~~~~~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:129: Cannot find file containing module: 'lab62soc'\n lab62soc u0 (\n ^~~~~~~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:169: Cannot find file containing module: 'ball'\n ball ball1(.*, .Reset(Reset_actual), .frame_clk(VGA_VS),\n ^~~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:175: Cannot find file containing module: 'bar'\n bar bar0(.*, .Reset(Reset_actual),.frame_clk(VGA_VS), \n ^~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:181: Cannot find file containing module: 'color_mapper'\n color_mapper colour_mapper(.*, .DrawX(drawxsig), .DrawY(drawysig),\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:188: Cannot find file containing module: 'vga_controller'\n vga_controller vga(.Clk(MAX10_CLK1_50), .Reset(Reset_actual),\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/426823752/lab62.sv:193: Cannot find file containing module: 'blocks'\n blocks level(.Reset(Reset_actual), .frame_clk(VGA_VS), .Block_Array(block_arr), .Block_SizeX(blocksizex), .Block_SizeY(blocksizey));\n ^~~~~~\n%Error: Exiting due to 10 error(s)\n"
module lab62 (


      input     MAX10_CLK1_50, 


      input    [ 1: 0]   KEY,


      input    [ 9: 0]   SW,


      output   [ 9: 0]   LEDR,


      output   [ 7: 0]   HEX0,
      output   [ 7: 0]   HEX1,
      output   [ 7: 0]   HEX2,
      output   [ 7: 0]   HEX3,
      output   [ 7: 0]   HEX4,
      output   [ 7: 0]   HEX5,


      output             DRAM_CLK,
      output             DRAM_CKE,
      output   [12: 0]   DRAM_ADDR,
      output   [ 1: 0]   DRAM_BA,
      inout    [15: 0]   DRAM_DQ,
      output             DRAM_LDQM,
      output             DRAM_UDQM,
      output             DRAM_CS_N,
      output             DRAM_WE_N,
      output             DRAM_CAS_N,
      output             DRAM_RAS_N,


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



      inout    [15: 0]   ARDUINO_IO,
      inout              ARDUINO_RESET_N 

);




	logic Reset_h, Reset_actual, lives_zero, vssig, blank, sync, VGA_Clk;





	logic SPI0_CS_N, SPI0_SCLK, SPI0_MISO, SPI0_MOSI, USB_GPX, USB_IRQ, USB_RST;
	logic [3:0] hex_num_4, hex_num_3, hex_num_1, hex_num_0;
	logic [1:0] signs;
	logic [1:0] hundreds;
	logic [9:0] drawxsig, drawysig, ballxsig, ballysig, ballsizesig, barxsig, barysig, barsizeigy, barsizeigx, blocksizey, blocksizex,blockx,blocky;
	logic [7:0] Red, Blue, Green;
	logic [7:0] keycode;
	logic barreset;
	logic [32:0] block_arr,curr_blocks;
	logic [1:0] lives;
	logic [15:0] curr_score;





	assign ARDUINO_IO[10] = SPI0_CS_N;
	assign ARDUINO_IO[13] = SPI0_SCLK;
	assign ARDUINO_IO[11] = SPI0_MOSI;
	assign ARDUINO_IO[12] = 1'bZ;
	assign SPI0_MISO = ARDUINO_IO[12];
	
	assign ARDUINO_IO[9] = 1'bZ; 
	assign USB_IRQ = ARDUINO_IO[9];
		

	assign ARDUINO_RESET_N = USB_RST;
	assign ARDUINO_IO[7] = USB_RST;
	assign ARDUINO_IO[8] = 1'bZ;
	assign USB_GPX = 1'b0;
	

	assign ARDUINO_IO[6] = 1'b1;
	

	HexDriver hex_driver4 (hex_num_4, HEX4[6:0]);
	assign HEX4[7] = 1'b1;
	
	HexDriver hex_driver3 (hex_num_3, HEX3[6:0]);
	assign HEX3[7] = 1'b1;
	
	HexDriver hex_driver1 (hex_num_1, HEX1[6:0]);
	assign HEX1[7] = 1'b1;
	
	HexDriver hex_driver0 (hex_num_0, HEX0[6:0]);
	assign HEX0[7] = 1'b1;
	

	assign HEX5 = {1'b1, ~signs[1], 3'b111, ~hundreds[1], ~hundreds[1], 1'b1};
	assign HEX2 = {1'b1, ~signs[0], 3'b111, ~hundreds[0], ~hundreds[0], 1'b1};
	
	

	assign {Reset_h}=~ (KEY[0]);
	assign Reset_actual = Reset_h || lives_zero;


	assign VGA_R = Red[7:4];
	assign VGA_B = Blue[7:4];
	assign VGA_G = Green[7:4];
	
	
	lab62soc u0 (
		.clk_clk                           (MAX10_CLK1_50),
		.reset_reset_n                     (1'b1),
		.altpll_0_locked_conduit_export    (),
		.altpll_0_phasedone_conduit_export (),
		.altpll_0_areset_conduit_export    (),
		.key_external_connection_export    (KEY),


		.sdram_clk_clk(DRAM_CLK),
		.sdram_wire_addr(DRAM_ADDR),
		.sdram_wire_ba(DRAM_BA),
		.sdram_wire_cas_n(DRAM_CAS_N),
		.sdram_wire_cke(DRAM_CKE),
		.sdram_wire_cs_n(DRAM_CS_N),
		.sdram_wire_dq(DRAM_DQ),
		.sdram_wire_dqm({DRAM_UDQM,DRAM_LDQM}),
		.sdram_wire_ras_n(DRAM_RAS_N),
		.sdram_wire_we_n(DRAM_WE_N),


		.spi0_SS_n(SPI0_CS_N),
		.spi0_MOSI(SPI0_MOSI),
		.spi0_MISO(SPI0_MISO),
		.spi0_SCLK(SPI0_SCLK),
		

		.usb_rst_export(USB_RST),
		.usb_irq_export(USB_IRQ),
		.usb_gpx_export(USB_GPX),
		

		.hex_digits_export({hex_num_4, hex_num_3, hex_num_1, hex_num_0}),
		.leds_export({hundreds, signs, LEDR}),
		.keycode_export(keycode)
		
	 );



	ball ball1(.*, .Reset(Reset_actual), .frame_clk(VGA_VS),
	    .BarX(barxsig), .BarY(barysig), .Bar_Sizex(barsizeigx), .Bar_Sizey(barsizeigy),
				  .BallX(ballxsig), .BallY(ballysig), .BallS(ballsizesig), .Bar_Reset(barreset),
				  .Block_SizeX(blocksizex), .Block_SizeY(blocksizey), .Block_Array(block_arr),.Blocks(curr_blocks),
				  .lives(lives), .start_menu(start_menu), .curr_score(curr_score), .lives_zero(lives_zero));
				  
	bar bar0(.*, .Reset(Reset_actual),.frame_clk(VGA_VS), 
				.BarX(barxsig), .BarY(barysig),
				.Bar_Sizex(barsizeigx), .Bar_Sizey(barsizeigy), .Bar_Reset(barreset),
				.start_menu(start_menu));
	
	
	color_mapper colour_mapper(.*, .DrawX(drawxsig), .DrawY(drawysig),
										.BallX(ballxsig), .BallY(ballysig), .Ball_size(ballsizesig),
										.BarX(barxsig), .BarY(barysig), .Bar_Sizex(barsizeigx), .Bar_Sizey(barsizeigy),
										.Block_SizeX(blocksizex), .Block_SizeY(blocksizey),
										.Block_Array(curr_blocks), .lives(lives), .keycode(keycode), .start_menu_1(start_menu),
										.clk(MAX10_CLK1_50), .Reset(Reset_actual), .curr_score(curr_score));
	
	vga_controller vga(.Clk(MAX10_CLK1_50), .Reset(Reset_actual),
							 .hs(VGA_HS), .vs(VGA_VS),
							 .pixel_clk(VGA_Clk), .blank(blank),
							 .sync(sync), .DrawX(drawxsig), .DrawY(drawysig));
	
	blocks level(.Reset(Reset_actual), .frame_clk(VGA_VS), .Block_Array(block_arr), .Block_SizeX(blocksizex), .Block_SizeY(blocksizey));
	

endmodule
module lab62 (


      input     MAX10_CLK1_50, 


      input    [ 1: 0]   KEY,


      input    [ 9: 0]   SW,


      output   [ 9: 0]   LEDR,


      output   [ 7: 0]   HEX0,
      output   [ 7: 0]   HEX1,
      output   [ 7: 0]   HEX2,
      output   [ 7: 0]   HEX3,
      output   [ 7: 0]   HEX4,
      output   [ 7: 0]   HEX5,


      output             DRAM_CLK,
      output             DRAM_CKE,
      output   [12: 0]   DRAM_ADDR,
      output   [ 1: 0]   DRAM_BA,
      inout    [15: 0]   DRAM_DQ,
      output             DRAM_LDQM,
      output             DRAM_UDQM,
      output             DRAM_CS_N,
      output             DRAM_WE_N,
      output             DRAM_CAS_N,
      output             DRAM_RAS_N,


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



      inout    [15: 0]   ARDUINO_IO,
      inout              ARDUINO_RESET_N 

);





	logic Reset_h, Reset_actual, lives_zero, vssig, blank, sync, VGA_Clk;





	logic SPI0_CS_N, SPI0_SCLK, SPI0_MISO, SPI0_MOSI, USB_GPX, USB_IRQ, USB_RST;
	logic [3:0] hex_num_4, hex_num_3, hex_num_1, hex_num_0;
	logic [1:0] signs;
	logic [1:0] hundreds;
	logic [9:0] drawxsig, drawysig, ballxsig, ballysig, ballsizesig, barxsig, barysig, barsizeigy, barsizeigx, blocksizey, blocksizex,blockx,blocky;
	logic [7:0] Red, Blue, Green;
	logic [7:0] keycode;
	logic barreset;
	logic [32:0] block_arr,curr_blocks;
	logic [1:0] lives;
	logic [15:0] curr_score;





	assign ARDUINO_IO[10] = SPI0_CS_N;
	assign ARDUINO_IO[13] = SPI0_SCLK;
	assign ARDUINO_IO[11] = SPI0_MOSI;
	assign ARDUINO_IO[12] = 1'bZ;
	assign SPI0_MISO = ARDUINO_IO[12];
	
	assign ARDUINO_IO[9] = 1'bZ; 
	assign USB_IRQ = ARDUINO_IO[9];
		

	assign ARDUINO_RESET_N = USB_RST;
	assign ARDUINO_IO[7] = USB_RST;
	assign ARDUINO_IO[8] = 1'bZ;
	assign USB_GPX = 1'b0;
	

	assign ARDUINO_IO[6] = 1'b1;
	

	HexDriver hex_driver4 (hex_num_4, HEX4[6:0]);
	assign HEX4[7] = 1'b1;
	
	HexDriver hex_driver3 (hex_num_3, HEX3[6:0]);
	assign HEX3[7] = 1'b1;
	
	HexDriver hex_driver1 (hex_num_1, HEX1[6:0]);
	assign HEX1[7] = 1'b1;
	
	HexDriver hex_driver0 (hex_num_0, HEX0[6:0]);
	assign HEX0[7] = 1'b1;
	

	assign HEX5 = {1'b1, ~signs[1], 3'b111, ~hundreds[1], ~hundreds[1], 1'b1};
	assign HEX2 = {1'b1, ~signs[0], 3'b111, ~hundreds[0], ~hundreds[0], 1'b1};
	
	

	assign {Reset_h}=~ (KEY[0]);
	assign Reset_actual = Reset_h || lives_zero;


	assign VGA_R = Red[7:4];
	assign VGA_B = Blue[7:4];
	assign VGA_G = Green[7:4];
	
	
	lab62soc u0 (
		.clk_clk                           (MAX10_CLK1_50),
		.reset_reset_n                     (1'b1),
		.altpll_0_locked_conduit_export    (),
		.altpll_0_phasedone_conduit_export (),
		.altpll_0_areset_conduit_export    (),
		.key_external_connection_export    (KEY),


		.sdram_clk_clk(DRAM_CLK),
		.sdram_wire_addr(DRAM_ADDR),
		.sdram_wire_ba(DRAM_BA),
		.sdram_wire_cas_n(DRAM_CAS_N),
		.sdram_wire_cke(DRAM_CKE),
		.sdram_wire_cs_n(DRAM_CS_N),
		.sdram_wire_dq(DRAM_DQ),
		.sdram_wire_dqm({DRAM_UDQM,DRAM_LDQM}),
		.sdram_wire_ras_n(DRAM_RAS_N),
		.sdram_wire_we_n(DRAM_WE_N),


		.spi0_SS_n(SPI0_CS_N),
		.spi0_MOSI(SPI0_MOSI),
		.spi0_MISO(SPI0_MISO),
		.spi0_SCLK(SPI0_SCLK),
		

		.usb_rst_export(USB_RST),
		.usb_irq_export(USB_IRQ),
		.usb_gpx_export(USB_GPX),
		

		.hex_digits_export({hex_num_4, hex_num_3, hex_num_1, hex_num_0}),
		.leds_export({hundreds, signs, LEDR}),
		.keycode_export(keycode)
		
	 );



	ball ball1(.*, .Reset(Reset_actual), .frame_clk(VGA_VS),
	    .BarX(barxsig), .BarY(barysig), .Bar_Sizex(barsizeigx), .Bar_Sizey(barsizeigy),
				  .BallX(ballxsig), .BallY(ballysig), .BallS(ballsizesig), .Bar_Reset(barreset),
				  .Block_SizeX(blocksizex), .Block_SizeY(blocksizey), .Block_Array(block_arr),.Blocks(curr_blocks),
				  .lives(lives), .start_menu(start_menu), .curr_score(curr_score), .lives_zero(lives_zero));
				  
	bar bar0(.*, .Reset(Reset_actual),.frame_clk(VGA_VS), 
				.BarX(barxsig), .BarY(barysig),
				.Bar_Sizex(barsizeigx), .Bar_Sizey(barsizeigy), .Bar_Reset(barreset),
				.start_menu(start_menu));
	
	
	color_mapper colour_mapper(.*, .DrawX(drawxsig), .DrawY(drawysig),
										.BallX(ballxsig), .BallY(ballysig), .Ball_size(ballsizesig),
										.BarX(barxsig), .BarY(barysig), .Bar_Sizex(barsizeigx), .Bar_Sizey(barsizeigy),
										.Block_SizeX(blocksizex), .Block_SizeY(blocksizey),
										.Block_Array(curr_blocks), .lives(lives), .keycode(keycode), .start_menu_1(start_menu),
										.clk(MAX10_CLK1_50), .Reset(Reset_actual), .curr_score(curr_score));
	
	vga_controller vga(.Clk(MAX10_CLK1_50), .Reset(Reset_actual),
							 .hs(VGA_HS), .vs(VGA_VS),
							 .pixel_clk(VGA_Clk), .blank(blank),
							 .sync(sync), .DrawX(drawxsig), .DrawY(drawysig));
	
	blocks level(.Reset(Reset_actual), .frame_clk(VGA_VS), .Block_Array(block_arr), .Block_SizeX(blocksizex), .Block_SizeY(blocksizey));
	

endmodule