Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

affect(3) [debian man page]

AFFECT(3)							 GENPAT functions							 AFFECT(3)

NAME
AFFECT, GENPAT Package ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSIS
AFFECT ("pattern_date", "ident", "value"); PARAMETERS
pattern_date : pattern date which may be either : integer (absolute date) or + integer (relative date, the date of the current pattern (last modified using INIT or AFFECT) is the reference). All dates are supposed to be expressed in the same time unit which may be set only once using SETTUNIT. 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". Path-name must be specified by the syntax : instance1.instance11.name value The value associated with the signal which may be either a based number (ex. binary: 0b011 ,hexa: 0x3F, octal: 0o56) or a deci- mal 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 transforma- tion of the value into a "forced" value or a "tested" value except for the bidirectional connectors affectation. When and bidi- rectional 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 simulation date, until the end of the simulation or until a new value is affected to the signal. Beware : Inputs have to be affected at the begining of the simulation (first pattern at 0 ps). By default, signals (except Inputs) are affected with a "full star" value at the first pattern. This fonction also set the current pattern. EXAMPLES
SETTUNIT("ps"); AFFECT ("5", "b", "0B1"); result : b < 5 ps> :.....1...; At simulation date 0 ps the signal b(3 downto 0) receives the value "0001". This value will be kept until the end of the simulation if no more affectation is made. SETTUNIT("ns"); AFFECT ("0", "b", "0B0"); AFFECT ("2", "b", "0B1"); result : b < 0 ns> :.....0...; < 2 ns> :.....1...; SEE ALSO
genpat(1), pat(5) BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 AFFECT(3)

Check Out this Related Man Page

INSTR(3)						       MBK UTILITY FUNCTIONS							  INSTR(3)

NAME
instr - find an occurence of a string in a string, starting at a specified character. ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSYS
#include "mut.h" char *instr(s, find, from) char *s, *find, from; PARAMETERS
s Pointer to the string to be searched for the pattern find Pointer to the string to be found, the pattern from Character to be searched backwards before searching for the pattern DESCRIPTION
instr searches the first occurence of the string find in the string s, starting its search at the last occurence of the from character in the string s. If either s or find is NULL, the function returns NULL. If from is (char)0, the pattern is searched from the begining of s. This quite exotic behaviour is useful to search the occurence of a name in a string resulting from a flatten, when only a terminal object name is to be taken into account. RETURN VALUES
instr return NULL either if the pattern find is not present in the searched string s, or if one at least of these two string are NULL. If the pattern is found, a value different from NULL is returned. EXAMPLE
#include "mut.h" /* check for the pattern 'ck' anywhere in the string */ #define contains_ck(name)instr(name, "ck", ' ') /* check for the pattern 'ck' in the signal name, not instance ones */ #define isclock(ptsig) instr(getsigname(ptsig), "ck", SEPAR) SEE ALSO
mbk(1), isvdd(3), isvss(3). BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 INSTR(3)
Man Page