[sv-bc] Identifier usage before declaration in assertion

From: Surya Pratik Saha <spsaha@cal.interrasystems.com>
Date: Sun Jul 11 2010 - 23:21:39 PDT

Hi,
For the following case:
module top(input clk, input [3:0] iT, output [3:0] oT);
   assert property (@(posedge clk) (aa == 4'b0000)) ;
   reg [3:0] aa;
   always @(posedge clk)
     aa <= iT;
   assign oT = aa;
endmodule // top

All the standard simulators pass the case. Please note that 'aa' is used
before it is declaration in the assertion statement. I could not find
any text in the LRM regarding this. What is the reason of this?

-- 
Regards
Surya
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sun Jul 11 23:22:22 2010

This archive was generated by hypermail 2.1.8 : Sun Jul 11 2010 - 23:25:17 PDT