data/full_repos/permissive/171756809/demux.v
data/verilator_xmls/8d4a044e-93e6-4767-92e0-4e7772016f93.xml
module demux(input wire enable, input wire [SELECTOR_WIDTH-1:0] selector, output wire [OUTPUT_WIDTH-1:0] out);
	parameter OUTPUT_WIDTH = 'd3;

	localparam SELECTOR_WIDTH = $clog2(OUTPUT_WIDTH);

	genvar i;
	generate
		for(i = 0; i < OUTPUT_WIDTH; i=i+1) begin
			assign out[i] = enable && (selector == i);
		end
	endgenerate
endmodule
module demux(input wire enable, input wire [SELECTOR_WIDTH-1:0] selector, output wire [OUTPUT_WIDTH-1:0] out);

	parameter OUTPUT_WIDTH = 'd3;

	localparam SELECTOR_WIDTH = $clog2(OUTPUT_WIDTH);

	genvar i;
	generate
		for(i = 0; i < OUTPUT_WIDTH; i=i+1) begin
			assign out[i] = enable && (selector == i);
		end
	endgenerate
endmodule