Typo in section 7.14 SystemVerilog 3.1a ?

From: Tamhankar Prasanna-A14507 <Prasanna.Tamhankar_at_.....>
Date: Thu Aug 18 2005 - 23:25:28 PDT
Hi,

Don't know how to report typos in SystemVerilog LRM, so I am copying Steven Sharp too.

On SV LRM section 7.14, in the example,

module mod1;
  typedef struct {
    int x;
    int y;
  } st;


  st s1;
  int k = 1;


  initial begin

    #1 s1 = {1, 2+k}; // by position
    #1 $display( s1.x, s1.y);
    #1 s1 = {x:2, y:3+k); // by name
    #1 $display( s1);
    #1 $finish;
  end
endmodule

Shouldn't the highlighted line be

    #1 s1 = {x:2, y:3+k}; // by name
Regards,

Prasanna
------------------------------------------------------
Prasanna Tamhankar
Freescale Semiconductors, Adelaide
+61 8 81683585
------------------------------------------------------ 
Received on Thu Aug 18 23:25:49 2005

This archive was generated by hypermail 2.1.8 : Thu Aug 18 2005 - 23:26:49 PDT