data/full_repos/permissive/139299103/OneCycleCPU.srcs/sources_1/new/selector3to1.v
'utf-8' codec can't decode byte 0xbf in position 712: invalid start byte
data/verilator_xmls/1a51f3f4-0785-4dc0-84d0-cac5dee3b02c.xml
module selector3to1(
	 pcPlusFour,
	 extendImm,
	 jumpAddress,
	 PCsrc,
	 result
);

	input wire[31:0] pcPlusFour;
	input wire[31:0] extendImm;
	input wire[31:0] jumpAddress;
	input [1:0] PCsrc;

	output reg[31:0] result;

	always @( pcPlusFour or extendImm or jumpAddress or PCsrc)begin
		case (PCsrc)
			2'b00: result = pcPlusFour;
			2'b01: result = pcPlusFour + (extendImm << 2);
			2'b10: result = jumpAddress;
			default:begin
			     result = result;
			end

		endcase
	end

endmodule
module selector3to1(
	 pcPlusFour,
	 extendImm,
	 jumpAddress,
	 PCsrc,
	 result
);


	input wire[31:0] pcPlusFour;
	input wire[31:0] extendImm;
	input wire[31:0] jumpAddress;
	input [1:0] PCsrc;

	output reg[31:0] result;

	always @( pcPlusFour or extendImm or jumpAddress or PCsrc)begin
		case (PCsrc)
			2'b00: result = pcPlusFour;
			2'b01: result = pcPlusFour + (extendImm << 2);
			2'b10: result = jumpAddress;
			default:begin
			     result = result;
			end

		endcase
	end

endmodule