Hi, Is labeled statement a scope? LRM lists out the valid scopes in 19.13 (Name spaces), there labeled statement is not included. But some simulators implemented labeled statement as a scope. For e.g. module top; wire clk; always @(posedge clk) begin : ASSIGN_BLOCK my_block: if ((01)&(out1)) begin : assert1 int a; a=in1; end else begin : assert2 int b; b=in2; end end endmodule module bench; top t(); integer x; initial begin x = t.ASSIGN_BLOCK.my_block.assert1.a; end endmodule Since my_block is a labeled statement, so hierarchical reference on that is invalid. Though some simulators pass it. -- Regards Surya -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Jun 13 03:21:21 2007
This archive was generated by hypermail 2.1.8 : Wed Jun 13 2007 - 03:21:42 PDT