[sv-ac] question on 966

From: John Havlicek <john.havlicek_at_.....>
Date: Mon Jul 10 2006 - 13:58:22 PDT
Ed:

I have a question about the restriction that a
parameter to which $ is assigned not be used in 
any expression.

In the example you have:

   generate
      if (!$isunbounded(max_quiet) && (max_quiet == 0)) begin
           ...
      end
      else begin
           ...
      end
      ...
   endgenerate

Is this really consistent with the restriction?  It looks to 
me as though

   !$isunbounded(max_quiet) && (max_quiet == 0)

is one big expression (the condition of the "if").  Also, are there
rules about early exit of the expression evaluation that are in force
here so that if max_quiet is $, then you don't test whether $ == 0?

Best regards,

John H.
Received on Mon Jul 10 13:58:28 2006

This archive was generated by hypermail 2.1.8 : Mon Jul 10 2006 - 13:58:32 PDT