data/full_repos/permissive/160794640/example/unpack1.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/cc743a70-4595-45e2-919c-244fe07b07ba.xml
module unpack1(
    input logic [4:0]   idx1,
    input logic         wr, ck,
    input logic [10:0]  data,
    output logic [10:0] rslt1
);

   logic [10:0]         unpacked1 [19:0];
   wire [4:0]           addr = idx1 < 20 ? idx1 : '0;
   
   assign rslt1 = unpacked1 [ addr ];

   always @(posedge ck)
     if (wr) unpacked1[addr] <= data;
   
endmodule
module unpack1(
    input logic [4:0]   idx1,
    input logic         wr, ck,
    input logic [10:0]  data,
    output logic [10:0] rslt1
);


   logic [10:0]         unpacked1 [19:0];
   wire [4:0]           addr = idx1 < 20 ? idx1 : '0;
   
   assign rslt1 = unpacked1 [ addr ];

   always @(posedge ck)
     if (wr) unpacked1[addr] <= data;
   
endmodule