data/full_repos/permissive/138243369/container_switcher.v
data/verilator_xmls/ec6514c6-8946-41d2-92c5-dbda263c0be4.xml
module container_switcher(
input wire [1:0] current_function,
input wire [21:0] display_addr,
input wire [2:0] func1_color,
input wire [2:0] func2_color,
input wire [2:0] func3_color,
output reg [21:0] func2_addr,
output reg [21:0] func3_addr,
output reg [2:0] display_color);

always @(*) begin
	case (current_function)

		2'd0: display_color = func1_color;

		2'd1: begin
			func2_addr = display_addr;
			display_color = func2_color;
		end
		2'd2: begin
			func3_addr = display_addr;
			display_color = func3_color;
		end
	endcase
end

endmodule
module container_switcher(
input wire [1:0] current_function,
input wire [21:0] display_addr,
input wire [2:0] func1_color,
input wire [2:0] func2_color,
input wire [2:0] func3_color,
output reg [21:0] func2_addr,
output reg [21:0] func3_addr,
output reg [2:0] display_color);


always @(*) begin
	case (current_function)

		2'd0: display_color = func1_color;

		2'd1: begin
			func2_addr = display_addr;
			display_color = func2_color;
		end
		2'd2: begin
			func3_addr = display_addr;
			display_color = func3_color;
		end
	endcase
end

endmodule