data/full_repos/permissive/147690299/lab/16_comb_demux_Nbit/rtl/bN_demux_1_N.sv
 line:11: before: "["
data/verilator_xmls/6ffbd390-37a4-4b15-aaf2-7f4f43592f71.xml
module bN_demux_1_N
#(
    parameter DATA_WIDTH = 4,
              ADDR_WIDTH = 4,
    parameter OUTPT_SIZE = 2**ADDR_WIDTH
)(
    input                      [DATA_WIDTH-1:0] din,
    input                      [ADDR_WIDTH-1:0] sel,

    output reg [OUTPT_SIZE-1:0][DATA_WIDTH-1:0] dout 
);
    localparam ZEROS = { (OUTPT_SIZE * DATA_WIDTH) { 1'b0 } };

    always @(*) begin
        dout = ZEROS;
        dout[sel] = din;
    end

endmodule
module bN_demux_1_N
#(
    parameter DATA_WIDTH = 4,
              ADDR_WIDTH = 4,
    parameter OUTPT_SIZE = 2**ADDR_WIDTH
)(
    input                      [DATA_WIDTH-1:0] din,
    input                      [ADDR_WIDTH-1:0] sel,

    output reg [OUTPT_SIZE-1:0][DATA_WIDTH-1:0] dout 
);

    localparam ZEROS = { (OUTPT_SIZE * DATA_WIDTH) { 1'b0 } };

    always @(*) begin
        dout = ZEROS;
        dout[sel] = din;
    end

endmodule