data/full_repos/permissive/494305189/dispdrive/dispdrive.v
1: b"%Error: data/full_repos/permissive/494305189/dispdrive/dispdrive.v:8: Cannot find file containing module: 'bcd2segment'\n bcd2segment decoder(selnum, disp);\n ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/494305189/dispdrive,data/full_repos/permissive/494305189/bcd2segment\n             data/full_repos/permissive/494305189/dispdrive,data/full_repos/permissive/494305189/bcd2segment.v\n             data/full_repos/permissive/494305189/dispdrive,data/full_repos/permissive/494305189/bcd2segment.sv\n             bcd2segment\n             bcd2segment.v\n             bcd2segment.sv\n             obj_dir/bcd2segment\n             obj_dir/bcd2segment.v\n             obj_dir/bcd2segment.sv\n%Error: Exiting due to 1 error(s)\n"
module dispdrive(input clk, rst, input[3:0] a, b, c, d, output[3:0] seldig, output[6:0] disp);
	reg[1:0] digit;
	reg[7:0] count;
	wire[3:0] selnum;
	
	assign selnum = (digit == 0)? d: (digit == 1)? c: (digit == 2)? b: a;
	assign seldig = (digit == 0)? 4'b1110: (digit == 1)? 4'b1101: (digit == 2)? 4'b1011: 4'b0111;
	bcd2segment decoder(selnum, disp);
	
	always @(posedge clk)
	begin
		if (rst)
		begin
			digit = 0;
			count = 0;
		end
		else
		begin
			count = count + 1;
			if (count == 255)
				digit = digit + 1;
		end
	end
endmodule
module dispdrive(input clk, rst, input[3:0] a, b, c, d, output[3:0] seldig, output[6:0] disp);

	reg[1:0] digit;
	reg[7:0] count;
	wire[3:0] selnum;
	
	assign selnum = (digit == 0)? d: (digit == 1)? c: (digit == 2)? b: a;
	assign seldig = (digit == 0)? 4'b1110: (digit == 1)? 4'b1101: (digit == 2)? 4'b1011: 4'b0111;
	bcd2segment decoder(selnum, disp);
	
	always @(posedge clk)
	begin
		if (rst)
		begin
			digit = 0;
			count = 0;
		end
		else
		begin
			count = count + 1;
			if (count == 255)
				digit = digit + 1;
		end
	end
endmodule