AFFECT(3)
π AFFECT(3) β GENPAT functions π
okay bestie so you're looking at AFFECT(3), a page from the GENPAT functions manual. sit down, hydrate, and let's get into it β¨
πΈ ORIGIN
fr fr this software belongs to the ALLIANCE CAD SYSTEM, developed by the ASIM team at the LIP6 laboratory of UniversitΓ© Pierre et Marie CURIE, in Paris, France. iconic. no cap.
- Web :
http://asim.lip6.fr/recherche/alliance/ - E-mail :
alliance-users@asim.lip6.fr
β¨ SYNOPSIS
AFFECT ("pattern_date", "ident", "value");
π¦ PARAMETERS
pattern_dateβ the pattern date, and it's giving two vibes: either an integer (that's an absolute date) or+integer (that's a relative date, and the date of the current pattern β the one last modified usingINITorAFFECTβ is the reference). Heads up: all dates are supposed to be expressed in the same time unit, and that unit can be set only once, usingSETTUNIT. π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, ifb(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 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.)AFFECTis 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 simulation date, until the end of the simulation or until a new value is affected to the signal. π
β οΈ Beware bestie : Inputs have to be affected at the beginning of the simulation (first pattern at0 ps). By default, signals (except Inputs) are affected with a"full star"value at the first pattern.
This fonction also set the current pattern. main character energy honestly β¨
π₯ EXAMPLES
okay so first one:
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. slay π
and second one, watch this:
SETTUNIT("ns");
AFFECT ("0", "b", "0B0");
AFFECT ("2", "b", "0B1");
result : b
< 0 ns> :.....0...;
< 2 ns> :.....1...;
ate, literally. π
π SEE ALSO
π BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. π₯Ί so like, pls tell them if something's cursed, iykyk.
ASIM/LIP6 Β· October 1, 1997 Β· AFFECT(3) β that's the source, the version, and the date bestie, we're done here πβ¨π¦
π¦ where this page comes from
- nixos 26.05: alliance 5.1.1-unstable-2025-02-24
- nixpkgs unstable: alliance 5.1.1-unstable-2025-02-24
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms