From: Cary R. <cy...@ya...> - 2008-03-07 18:08:38
|
In section 4.5.1 of 1364-2001 it states that for non-self-determined operands if any operand is real the results will be real, but my interpretation of a simple parameter is that it can be self-determined. If not specified it takes the type and size of the RHS. So would the following give one real and one bit based parameter or two real parameters? parameter real_val = 1'b1 ? 1.0 : 4'b1010; parameter int_val = 1'b0 ? 1.0 : 4'b1010; // is this 4'b1010 or 10.0? Cary ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ |