A Freescale.com !n!t!at!veSupported by www.sourceforge.net
This document is the reference document of the admst language.
admst is a subset of the xml language. Its DTD can be found at
admst.dtd.
admst is used by adms to transform verilog-ams source code into any kind of outputs
(html documents, C code for spice simulators.) The primary application of admst is to create
C code generators that generate from verilog-ams language ready-to-compile C code for some simulator-specific API.
However its use can be extended to other applications like the automatic generation of html documentation. Most of the syntax used by admst has been borrowed from the xsl language.
The command below shows how adms interprets admst scripts (myadmst.xml is an admst script and myverilogams.va
is a verilog-ams file):
admsXml interprets the admst intructions found in file myadmst.xml and apply the instructions to the contents of the verilog-ams file myverilogams.va. It will produce some output files according to the admst transforms specified into myadmst.xml.
1. <?xml version="1.0" encoding="ISO-8859-1"?> 2. <!DOCTYPE admst PUBLIC "-//adms//DTD admst 2.0//-" "http://mot-adms.sourceforge.net/xml-files/adms/admst.dtd"> 3. <admst version="1.48.0" xmlns:admst="http://mot-adms.sourceforge.net/adms/admst.xml"> 4. <admst:getenv name="HOME"/> 5. <admst:text format="HOME is %s\n"/> 6. </admst>
xmllint admst.xml -noout -postvalid -noblanks
The list below provides a brief description of all possible admst transforms. Each admst transform has a set of attributes that modify or refine its behavior. An attribute is made of a name and a value: attrName="attrValue". The container of value attrValue can either be a scalar or a list. The data type of value attrValue can either be a basic type (integer, real, string, enumeration) or a reference to an adms element (module, node, branch, ...). adms uses attribute properties (datatypefamily, datatypename, size) to check dynamically the validity of attrValue. A star ("*") means that attrValue can be any adms element or can be of any type.
Examples:
name | attributes | |||
name | type | size | required | |
admst | version | text | scalar | warn |
admst:apply-templates | select | path | scalar | yes |
match | text | scalar | yes | |
path | path | scalar | no | |
test | path | scalar | no | |
required | text | scalar | no | |
admst:assert | format | text | scalar | no |
test | path | scalar | yes | |
path | path | scalar | no | |
select | path | scalar | no | |
admst:attribute | name | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
select | path | scalar | yes | |
admst:break | path | path | scalar | no |
test | path | scalar | no | |
admst:choose | path | path | scalar | no |
test | path | scalar | no | |
admst:copy | from | text | scalar | yes |
to | text | scalar | yes | |
path | path | scalar | no | |
test | path | scalar | no | |
admst:count | select | path | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:error | format | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
select | path | scalar | no | |
admst:fatal | format | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
select | path | scalar | no | |
admst:for-each | select | path | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:getenv | name | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:if | test | path | scalar | yes |
path | path | scalar | no | |
admst:if-inside | list | text | scalar | yes |
select | path | scalar | yes | |
path | path | scalar | no | |
test | path | scalar | no | |
admst:if-not-inside | list | text | scalar | yes |
select | path | scalar | yes | |
path | path | scalar | no | |
test | path | scalar | no | |
admst:join | select | path | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
separator | text | scalar | no | |
admst:message | format | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
select | path | scalar | no | |
admst:new | datatype | text | scalar | yes |
arguments | text | list | no | |
inputs | path | list | no | |
path | path | scalar | no | |
test | path | scalar | no | |
admst:open | file | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:otherwise | path | path | scalar | no |
test | path | scalar | no | |
admst:push | select | path | scalar | yes |
into | path | scalar | yes | |
onduplicate | text | scalar | no | |
oncompare | path | scalar | no | |
path | path | scalar | no | |
test | path | scalar | no | |
admst:read | file | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:reset | select | path | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:return | name | text | scalar | yes |
string | text | scalar | yes | |
path | path | scalar | no | |
test | path | scalar | no | |
value | obsolete - see string | scalar | no | |
admst:reverse | select | path | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:setenv | name | text | scalar | yes |
path | path | scalar | no | |
string | text | scalar | no | |
test | path | scalar | no | |
admst:template | match | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
mode | obsolete - ignored | scalar | no | |
admst:text | format | text | scalar | no |
path | path | scalar | no | |
test | path | scalar | no | |
select | path | scalar | no | |
admst:value-of | select | path | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
admst:value-to | select | path | scalar | yes |
string | text | scalar | no | |
path | path | scalar | no | |
test | path | scalar | no | |
value | obsolete - see string | scalar | no | |
admst:variable | name | text | scalar | yes |
string | text | scalar | yes | |
select | text | scalar | yes | |
path | path | scalar | yes | |
test | path | scalar | no | |
admst:warning | format | text | scalar | yes |
path | path | scalar | no | |
test | path | scalar | no | |
select | path | scalar | no | |
admst:when | test | path | scalar | yes |
path | path | scalar | no |
This page has been automatically created by applying the xsl transform
admststyle.xsl
to the xml data file
admst.xml.
The rendering of the page is specified by the css stylesheet
adms.css.
You can get the full contents of data file
admst.xml
by viewing the source of the document from your web browser.
Please address any comments to r29173.