AFFECT(3)

NAME

AFFECT, GENPAT Package

ORIGIN

This software belongs to the ALLIANCE CAD system from the
CAO-VLSI team at MASI laboratory, University P. et M. Curie
4, place Jussieu ; 75252 PARIS Cedex 05 ; FRANCE
Fax: (33-1) 44.27.62.86 ; E-mail: cao-vlsi@masi.ibp.fr

SYNOPSIS

AFFECT ("pattern_nb", "ident", "value");

PARAMETERS

pattern_nb
    pattern number which may be either : integer (absolute pattern number) or + integer (relative pattern number, the reference pattern number is defined by the last AFFECT or INIT).

ident
    Either the name of a bused signal or a scalar. Vectors must be referenced with their names only, or bit per bit. For example, if b(3 downto 0) exists, you can affect "b", "b(3)" or "b 3".

value
    The value associated with the signal which may be either a based number (ex. binary: 0b011 ,hexa: 0x3F, octal: 0o56) or a decimal number. Unknown value (value where a '*' appears), can be used when dealing with an output, a signal, a register or an input/output when this last one is to be tested. Star ('*') can appears everywhere in a BASED number, but the result will be a "full star" value. (For example, "0B0*10" and "0B***" would give the same result.) AFFECT is doing automatically the transformation of the value into a "forced" value or a "tested" value except for the bidirectional connectors affectation. When and bidirectional is to be tested, a '?' character must be added before the value (example : "?0x45f*" instead of "0x45f*").

DESCRIPTION

"Affect" a value to a signal. This value will be apllied to the signal, at the specified pattern number, until the end of the simulation or until a new value is affected to the signal. Beware : Inputs have to be affected at the first pattern. By default, signals (except Inputs) are affected with a "full star" value at the first pattern.

This fonction also set the current pattern number.

EXAMPLES

AFFECT ("0", "b", "0B1");

At pattern 0 the signal b(3 downto 0) receives the value "0001". This value will be kept until the last pattern if no more affectation is made.
AFFECT ("0", "b", "0B0");
AFFECT ("2", "b", "0B1");
result :            b
        pat_0 :.....0...;
        pat_1 :.....0...;
        pat_2 :.....1...;

SEE ALSO

genpat(1), pat(5)

BUGS

Please e-mail to cao-vlsi@masi.ibp.fr for bug report and suggestions.