data/full_repos/permissive/20097350/RandomWrapper.v
1: b"%Error: data/full_repos/permissive/20097350/RandomWrapper.v:55: Cannot find file containing module: 'PRandomHorz'\nPRandomHorz PRHorz(\n^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/20097350,data/full_repos/permissive/20097350/PRandomHorz\n             data/full_repos/permissive/20097350,data/full_repos/permissive/20097350/PRandomHorz.v\n             data/full_repos/permissive/20097350,data/full_repos/permissive/20097350/PRandomHorz.sv\n             PRandomHorz\n             PRandomHorz.v\n             PRandomHorz.sv\n             obj_dir/PRandomHorz\n             obj_dir/PRandomHorz.v\n             obj_dir/PRandomHorz.sv\n%Error: data/full_repos/permissive/20097350/RandomWrapper.v:62: Cannot find file containing module: 'PRandomVert'\nPRandomVert PRVert(\n^~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module RandomWrapper(
		input CLK,
		input RESET,
		input NEXT,
		input [1:0] MASTER_STATE,
		output [7:0] HORIZONTAL,
		output [6:0] VERTICAL
    );
	 
wire [7:0] randhorz;
wire [6:0] randvert;
reg [7:0] horz;
reg [6:0] vert;
assign HORIZONTAL=horz;
assign VERTICAL=vert;

always @(posedge CLK, posedge RESET) begin
	if(RESET) begin
        horz <= 30;
        vert <= 20;
    end
    else begin
        if(NEXT | (MASTER_STATE==2'b00)) begin
				if(randhorz<160 & randvert<120) begin
					horz <= randhorz;
					vert <= randvert;
				end else begin
					horz <= 80;
					vert <= 60;
				end
			end
    end
end

PRandomHorz PRHorz(
    .CLK(CLK),
    .RESET(RESET),
	 .CE(1'b1),
    .OUT(randhorz)
);

PRandomVert PRVert(
    .CLK(CLK),
    .RESET(RESET),
	 .CE(1'b1),
    .OUT(randvert)
);

endmodule
module RandomWrapper(
		input CLK,
		input RESET,
		input NEXT,
		input [1:0] MASTER_STATE,
		output [7:0] HORIZONTAL,
		output [6:0] VERTICAL
    );

	 
wire [7:0] randhorz;
wire [6:0] randvert;
reg [7:0] horz;
reg [6:0] vert;
assign HORIZONTAL=horz;
assign VERTICAL=vert;

always @(posedge CLK, posedge RESET) begin
	if(RESET) begin
        horz <= 30;
        vert <= 20;
    end
    else begin
        if(NEXT | (MASTER_STATE==2'b00)) begin
				if(randhorz<160 & randvert<120) begin
					horz <= randhorz;
					vert <= randvert;
				end else begin
					horz <= 80;
					vert <= 60;
				end
			end
    end
end

PRandomHorz PRHorz(
    .CLK(CLK),
    .RESET(RESET),
	 .CE(1'b1),
    .OUT(randhorz)
);

PRandomVert PRVert(
    .CLK(CLK),
    .RESET(RESET),
	 .CE(1'b1),
    .OUT(randvert)
);

endmodule