Tokens are string labels that are defined in a separate ASCII file and can be assigned to a particular bus value. These labels can be useful in applications such as address decoding and state machines. The token file (.tok extension) has a very simple format, and can be created or edited in any text editor. Tokens are in the form NAME=VALUE where NAME is the token name and VALUE is the token value (hex, binary, or decimal). Values are hex by default. To specify a radix for the value, append \b (binary), \u (unsigned decimal), \h (hex) to the value.
A default token can be used toset a default token value when no other VALUE matches are found. The @DEFAULT_TOKEN key can be usedto set the default token name. The token name “HEX” is used if no @DEFAULT_TOKEN line is used. The comment character in a token file is “#”. The first non-comment line of the token file must be “@FILE_VERSION=1.0.0”.
相关文章: