data/full_repos/permissive/502744275/rager.sv
1: b"%Error: data/full_repos/permissive/502744275/rager.sv:88: 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/502744275,data/full_repos/permissive/502744275/HexDriver\n             data/full_repos/permissive/502744275,data/full_repos/permissive/502744275/HexDriver.v\n             data/full_repos/permissive/502744275,data/full_repos/permissive/502744275/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/502744275/rager.sv:91: Cannot find file containing module: 'HexDriver'\n HexDriver hex_driver3 (hex_num_3, HEX3[6:0]);\n ^~~~~~~~~\n%Error: data/full_repos/permissive/502744275/rager.sv:94: Cannot find file containing module: 'HexDriver'\n HexDriver hex_driver1 (hex_num_1, HEX1[6:0]);                       \n ^~~~~~~~~\n%Error: data/full_repos/permissive/502744275/rager.sv:97: Cannot find file containing module: 'HexDriver'\n HexDriver hex_driver0 (hex_num_0, HEX0[6:0]);\n ^~~~~~~~~\n%Error: data/full_repos/permissive/502744275/rager.sv:119: Cannot find file containing module: 'lab7_soc'\n lab7_soc u0 (\n ^~~~~~~~\n%Error: data/full_repos/permissive/502744275/rager.sv:163: Cannot find file containing module: 'vga_controller'\n vga_controller vc0 (\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/502744275/rager.sv:177: Cannot find file containing module: 'ball'\n ball mc0(\n ^~~~\n%Error: data/full_repos/permissive/502744275/rager.sv:188: Cannot find file containing module: 'color_mapper'\n color_mapper cm0 (\n ^~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module rager (


      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 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 [7:0] red, green, blue;
	logic [7:0] keycode0, keycode1, keycode2, keycodeshoot;
	logic Start;




	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[8] = 1'bZ;

	assign USB_GPX = 1'b0;
	

	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]); 





	





	

	lab7_soc 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_0_export(keycode0),
		.keycode_1_export(keycode1),
		.keycode_2_export(keycode2),
		.keycode_shoot_export(keycodeshoot)
	 );

	logic [9:0] drawX, drawY;
	logic Reset_h, blank, sync, VGA_Clk;
	 
	vga_controller vc0 (
		.Clk(MAX10_CLK1_50),
		.Reset(Reset_h),
		.hs(VGA_HS),
		.vs(VGA_VS),
		.pixel_clk(VGA_Clk),
		.blank(blank),
		.sync(sync),
		.DrawX(drawX),
		.DrawY(drawY)
	);

	wire [9:0] Ball_X, Ball_Y;

	ball mc0(
		.frame_clk(VGA_VS),
		.Reset(Reset_h),
		.keycode0(keycode0),
		.keycode1(keycode1),
		.keycode2(keycode2),
		.Ball_X(Ball_X),
		.Ball_Y(Ball_Y),
		.Start(Start)
	);
	
	color_mapper cm0 (
		.clk(VGA_VS),
		.Reset(Reset_h),
		.blank(blank),
		.Start(Start),
		.DrawX(drawX),
		.DrawY(drawY),
		.Ball_X(Ball_X),
		.Ball_Y(Ball_Y),
		.keycodeshoot(keycodeshoot),
		.Red(VGA_R),
		.Green(VGA_G),
		.Blue(VGA_B)
	);

endmodule
module rager (


      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 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 [7:0] red, green, blue;
	logic [7:0] keycode0, keycode1, keycode2, keycodeshoot;
	logic Start;




	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[8] = 1'bZ;

	assign USB_GPX = 1'b0;
	

	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]); 





	





	

	lab7_soc 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_0_export(keycode0),
		.keycode_1_export(keycode1),
		.keycode_2_export(keycode2),
		.keycode_shoot_export(keycodeshoot)
	 );

	logic [9:0] drawX, drawY;
	logic Reset_h, blank, sync, VGA_Clk;
	 
	vga_controller vc0 (
		.Clk(MAX10_CLK1_50),
		.Reset(Reset_h),
		.hs(VGA_HS),
		.vs(VGA_VS),
		.pixel_clk(VGA_Clk),
		.blank(blank),
		.sync(sync),
		.DrawX(drawX),
		.DrawY(drawY)
	);

	wire [9:0] Ball_X, Ball_Y;

	ball mc0(
		.frame_clk(VGA_VS),
		.Reset(Reset_h),
		.keycode0(keycode0),
		.keycode1(keycode1),
		.keycode2(keycode2),
		.Ball_X(Ball_X),
		.Ball_Y(Ball_Y),
		.Start(Start)
	);
	
	color_mapper cm0 (
		.clk(VGA_VS),
		.Reset(Reset_h),
		.blank(blank),
		.Start(Start),
		.DrawX(drawX),
		.DrawY(drawY),
		.Ball_X(Ball_X),
		.Ball_Y(Ball_Y),
		.keycodeshoot(keycodeshoot),
		.Red(VGA_R),
		.Green(VGA_G),
		.Blue(VGA_B)
	);

endmodule