data/full_repos/permissive/136422019/src/conFF.v
1: b"%Error: data/full_repos/permissive/136422019/src/conFF.v:13: Cannot find file containing module: 'conFFCompare'\nconFFCompare comparator(bus_data, eq, ge, lt, ne);\n^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/136422019/src,data/full_repos/permissive/136422019/conFFCompare\n             data/full_repos/permissive/136422019/src,data/full_repos/permissive/136422019/conFFCompare.v\n             data/full_repos/permissive/136422019/src,data/full_repos/permissive/136422019/conFFCompare.sv\n             conFFCompare\n             conFFCompare.v\n             conFFCompare.sv\n             obj_dir/conFFCompare\n             obj_dir/conFFCompare.v\n             obj_dir/conFFCompare.sv\n%Error: Exiting due to 1 error(s)\n"
module conFF(
	output reg conOut,
	input wire[31:0] bus_data,
	input wire[1:0] IR_data,
	input wire clk, conIn
);

reg compare;


wire eq, ge, lt, ne;
conFFCompare comparator(bus_data, eq, ge, lt, ne);

initial begin
	conOut <= 0;
	compare <= 0;
end


always @(*) begin
	if(IR_data == 'b00)
		compare <= eq;
	else if(IR_data == 'b01)
		compare <= ne;
	else if(IR_data == 'b10)
		compare <= ge;
	else
		compare <= lt;
end

always @(posedge clk) begin
	if(conIn == 1)
		conOut <= compare;
end
endmodule
module conFF(
	output reg conOut,
	input wire[31:0] bus_data,
	input wire[1:0] IR_data,
	input wire clk, conIn
);


reg compare;


wire eq, ge, lt, ne;
conFFCompare comparator(bus_data, eq, ge, lt, ne);

initial begin
	conOut <= 0;
	compare <= 0;
end


always @(*) begin
	if(IR_data == 'b00)
		compare <= eq;
	else if(IR_data == 'b01)
		compare <= ne;
	else if(IR_data == 'b10)
		compare <= ge;
	else
		compare <= lt;
end

always @(posedge clk) begin
	if(conIn == 1)
		conOut <= compare;
end
endmodule