[sv-bc] Assigning type parameter via conditional operator

From: Abhishek Jain <abhishek_jain@mentor.com>
Date: Thu Jul 29 2010 - 05:17:46 PDT

Hi,

Why I am not able to assign (or why language does not allow) a parameter
type value based on conditional expression . For example in the below
mentioned code assignment of TT_FAIL has syntax error.
       module A;
       parameter int WIDTH = 10;
       parameter int WIDTH_MAX = WIDTH == 10 ? 10:5;
       parameter type TT = int;
      * parameter type TT_FAIL = WIDTH == 10 ? int:logic;*
       endmodule

Thanks,
Abhishek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jul 29 05:18:10 2010

This archive was generated by hypermail 2.1.8 : Thu Jul 29 2010 - 05:20:50 PDT