20.01.2015 Views

The TASM Language Reference Manual Version 1.1 - Synrc

The TASM Language Reference Manual Version 1.1 - Synrc

The TASM Language Reference Manual Version 1.1 - Synrc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Sub Machine Template<br />

A sub machine is similar to a main machine except that the sub machine does not<br />

execute in its own thread of execution. Instead, a sub machine executes inside of a main<br />

machine and shares the thread of execution of the main machine. Sub machines are<br />

used to achieve hierarchical composition. A main machine can use many sub machines<br />

as part of its definition. A sub machine template contains the same attributes as a main<br />

machine.<br />

2.7.5 System<br />

<strong>The</strong> system object is used to define instantiations of machine templates and initial conditions<br />

of environment variables. In a sense, the system is used to define the instances<br />

of templates that are to be used for a given design, and the parameters that are to be<br />

used for simulation. A set of machine template instantiations and the set of initial<br />

values for environment variables is termed a configuration. <strong>The</strong>re is only one system<br />

object per project. <strong>The</strong> set of templates and the environment can be thought of as defining<br />

a library of components that can be used for a system design. A configuration can<br />

be thought of as a specific system design using a subset of the components in the library<br />

and a set of initial conditions.<br />

Configuration<br />

A configuration is a child of the system object. <strong>The</strong> system object can have multiple<br />

child configurations. A configuration contains a name and a description so that it can be<br />

referenced during simulation. A configuration also contains a list of main machine instantiations,<br />

by invoking the constructors of the main machine templates. Furthermore,<br />

the configuration also contains initial values for some of the environment variables.<br />

<strong>The</strong> initial values specified in a configuration override the initial values of environment<br />

variables specified in the environment.<br />

34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!