RE: [sv-bc] SV-BC 291 is uploaded and ready

From: Brad Pierce <Brad.Pierce@synopsys.com>
Date: Fri Nov 12 2004 - 12:34:40 PST

As long as I'm talking to myself, please allow me to correct the
example I just sent. It wouldn't be legal to assign '1 to an unpacked
array, so intsead I should have used an aggregate constructor.

  parameter P = 12;
  typedef integer T0[P];
  typedef shortint T1[2*P];
  typedef shortint T2[P];

  module m(output T0 out1, out2, out3={default:'1},
           input T1 in1, input T2 in2);
    assign out1 = T0'(in1);
    for (genvar i = 0; i < P; i++) begin
      assign out2[i] = in2[i];
    end
    always_comb out3 = { >> { in2 } };
  endmodule:m

-- Brad
Received on Fri Nov 12 12:33:54 2004

This archive was generated by hypermail 2.1.8 : Fri Nov 12 2004 - 12:34:08 PST