CONVCMP(3)

NAME

convcmp, GENPAT Package

SYNOPSYS

convcmp(variable or constant(integer));

DESCRIPTION

Convert an decimal integer, an decimal integer expression or a variable in a chain of char considered of base decimal suffixed with a '?', it permits to compare simulated values with projected values.

EXAMPLE

affect(conv(bar),"cl",convcmp(foo),0);
At pattern number (content of bar), cl is affected with
the value represented by the content of the variable foo.
Let's suppose bar = 3, foo = 1, so this AFFECT is equivalent to
affect("3","ck","?1",0);
affect(conv(bar + foo),"ck","1",0);
At pattern number (foo + bar, here 4), ck is affected with the value 1.

SEE ALSO

genpat(1), pat(5)