Re: [sv-bc] 4.10.4 "Enumerated types in numerical expressions" - unclearness

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Mon May 08 2006 - 21:56:37 PDT
Following up on http://www.eda.org/sv-bc/hm/4346.html , if enum types
were not integral, then the following parameter declaration would be
illegal.

 

 typedef enum {false, true} bool;

 

 module m#(P=true);

     ...

 endmodule:m

 

According to 6.3.2, "In an assignment to [...] a parameter without an
explicit type declaration, the type of the righthand expression shall be
real or integral. [...] If the expression is integral, the parameter is
a logic vector of the same size with range [size-1:0]."

 

-- Brad

 

 

      
Received on Mon May 8 21:56:44 2006

This archive was generated by hypermail 2.1.8 : Mon May 08 2006 - 21:57:00 PDT