data/full_repos/permissive/125379288/rng.v
1: b"%Error: data/full_repos/permissive/125379288/rng.v:17: Cannot find file containing module: 'hex_display'\n hex_display hex0(\n ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/125379288,data/full_repos/permissive/125379288/hex_display\n             data/full_repos/permissive/125379288,data/full_repos/permissive/125379288/hex_display.v\n             data/full_repos/permissive/125379288,data/full_repos/permissive/125379288/hex_display.sv\n             hex_display\n             hex_display.v\n             hex_display.sv\n             obj_dir/hex_display\n             obj_dir/hex_display.v\n             obj_dir/hex_display.sv\n%Error: data/full_repos/permissive/125379288/rng.v:22: Cannot find file containing module: 'hex_display'\n hex_display hex1(\n ^~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module rng(HEX0,HEX1,KEY,SW, LEDR, CLOCK_50);
	
	input [3:0] SW;
	input [3:0] KEY;
	input CLOCK_50;
	output [6:0] HEX0;
	output [6:0] HEX1;
	output [9:0] LEDR;

	
	reg [3:0] hp = 4'b1001;
	reg [3:0] dmg = 4'b0011;
	
	wire [3:0] randomout;
	
	hex_display hex0(
		.IN(randomout),
		.OUT(HEX0[6:0])
	);
	
	hex_display hex1(
		.IN(hp),
		.OUT(HEX1[6:0])
	);
	
	GARO rn1(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[0])
				);
				
	GARO rn2(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[1])
				);
				
	GARO rn3(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[2])
				);

	GARO rn4(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[3])
				);
				
   assign LEDR[0] = (randomout > 'd7);
	assign LEDR[1] = (randomout <= 'd7);
	
	always@(posedge KEY[0])
	begin
		begin
		 if(~KEY[0])
			if (randomout > 'd7)
		     hp <= hp - dmg;
		end
	end
	
endmodule
module rng(HEX0,HEX1,KEY,SW, LEDR, CLOCK_50);

	
	input [3:0] SW;
	input [3:0] KEY;
	input CLOCK_50;
	output [6:0] HEX0;
	output [6:0] HEX1;
	output [9:0] LEDR;

	
	reg [3:0] hp = 4'b1001;
	reg [3:0] dmg = 4'b0011;
	
	wire [3:0] randomout;
	
	hex_display hex0(
		.IN(randomout),
		.OUT(HEX0[6:0])
	);
	
	hex_display hex1(
		.IN(hp),
		.OUT(HEX1[6:0])
	);
	
	GARO rn1(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[0])
				);
				
	GARO rn2(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[1])
				);
				
	GARO rn3(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[2])
				);

	GARO rn4(
	         .stop(SW[1]),
				.clk(CLOCK_50),
				.reset(SW[0]),
				.random(randomout[3])
				);
				
   assign LEDR[0] = (randomout > 'd7);
	assign LEDR[1] = (randomout <= 'd7);
	
	always@(posedge KEY[0])
	begin
		begin
		 if(~KEY[0])
			if (randomout > 'd7)
		     hp <= hp - dmg;
		end
	end
	
endmodule