Subject: Re: [sv-cc] DirectC C Layer - encoding of x/z
From: Michael McNamara (mac@verisity.com)
Date: Tue Feb 04 2003 - 16:53:42 PST
Yes, please let us stick with 00 -> 0 01-> 1 10 -> z and 11 ->x
-mac
Andrzej Litwiniuk writes:
 > > > /* canonical representation */
 > > >
 > > > #define sv_0    0
 > > > #define sv_1    1
 > > > #define sv_z    2       /* representation of 4-st scalar z */
 > > > #define sv_x    3       /* representation of 4-st scalar x */
 > 
 > KEVIN:
 > > Value, strength and certainty are orthogonal, this would be better as:
 > > 
 > > #define sv_0    0
 > > #define sv_1    1
 > > #define sv_z    2       /* representation of 4-st scalar z */
 > > #define sv_x    4       /* representation of 4-st scalar x */
 > > 
 > > - this is relevent if you are bridging into a mixed-signal/analog environment.
 > 
 > The proposed representation of x and z is consistent with Verilog 1364-1995 
 > standard, see LRM p. 340:
 > 
 > aval	bval	value
 > ---------------------
 > 0	0	0
 > 1	0	1
 > 0	1	z
 > 1	1	x
 > 
 > I assumed that numerical representation is calculated as {bval,aval}.
 > 
 > BTW, I prefer VCS notation with "c" and "d" fields, cf. svLogicVec32,
 > because it seems more intuitive: "c" stands for "control" and "d" stands for
 > "data". 
 > 
 > Andrzej
 > 
This archive was generated by hypermail 2b28 : Tue Feb 04 2003 - 16:54:15 PST