data/full_repos/permissive/454159683/reloj3/reloj3.v
1: b"%Error: data/full_repos/permissive/454159683/reloj3/reloj3.v:11: Cannot find file containing module: 'reloj1'\n reloj1 u0(clk, rst, rlj_mu, rlj_md);\n ^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/454159683/reloj3,data/full_repos/permissive/454159683/reloj1\n             data/full_repos/permissive/454159683/reloj3,data/full_repos/permissive/454159683/reloj1.v\n             data/full_repos/permissive/454159683/reloj3,data/full_repos/permissive/454159683/reloj1.sv\n             reloj1\n             reloj1.v\n             reloj1.sv\n             obj_dir/reloj1\n             obj_dir/reloj1.v\n             obj_dir/reloj1.sv\n%Error: data/full_repos/permissive/454159683/reloj3/reloj3.v:12: Cannot find file containing module: 'cron60s'\n cron60s u1(clk, cron_btn, rst, cron_mu, cron_md);\n ^~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module reloj3(input clk, rst, mode_btn, cron_btn, output[3:0] mu, md);
	wire[3:0] rlj_mu, rlj_md, cron_mu, cron_md;
	reg state;
	parameter reloj_mode = 0, cron_mode = 1;
	
	reloj1 u0(clk, rst, rlj_mu, rlj_md);
	cron60s u1(clk, cron_btn, rst, cron_mu, cron_md);
	
	assign mu = (state == reloj_mode) ? rlj_mu : cron_mu;
	assign md = (state == reloj_mode) ? rlj_md : cron_md;
	
	always @(posedge clk)
	begin
		if (rst)
			state = reloj_mode;
		else
			case (state)
				reloj_mode: begin
					if (mode_btn)
						state = cron_mode;
				end
				
				cron_mode: begin
					if (mode_btn)
						state = reloj_mode;
				end
			endcase
	end
	
endmodule
module reloj3(input clk, rst, mode_btn, cron_btn, output[3:0] mu, md);

	wire[3:0] rlj_mu, rlj_md, cron_mu, cron_md;
	reg state;
	parameter reloj_mode = 0, cron_mode = 1;
	
	reloj1 u0(clk, rst, rlj_mu, rlj_md);
	cron60s u1(clk, cron_btn, rst, cron_mu, cron_md);
	
	assign mu = (state == reloj_mode) ? rlj_mu : cron_mu;
	assign md = (state == reloj_mode) ? rlj_md : cron_md;
	
	always @(posedge clk)
	begin
		if (rst)
			state = reloj_mode;
		else
			case (state)
				reloj_mode: begin
					if (mode_btn)
						state = cron_mode;
				end
				
				cron_mode: begin
					if (mode_btn)
						state = reloj_mode;
				end
			endcase
	end
	
endmodule