Download SLS : SWITCH-LEVEL SIMULATOR USER`S MANUAL
Transcript
Sls User’s Manual
6
3.2 Network Description
TABLE 2. Syntax of the network part.
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
network_decls
network_decl
= network_decl {network_decl}.
= network identifier decl_part ntw_body.
The network part begins with the keyword network followed by the name of the network,
a declaration part describing the interface to the outside world and a body specifying the
instances of devices and subnetworks.
3.3 Declarations
TABLE 3. Syntax of the declaration part.
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
decl_part
term_decls
term decl
term
range_list
range
= "(" term_decls ")".
= term_decl {";" term_decl}.
= terminal term {"," term}.
= identifier ["[" range_list "]"].
= range {"," range}.
= integer ".." integer.
The declaration part is bracketed by a left and right parenthesis. It must contain at least
one terminal declaration. A terminal declaration begins with the keyword terminal
followed by a list of terminals. A list of terminals consists of one or more terminals
separated by commas.
Examples:
network register (terminal in[1..4,1..4], out[1..8])
network latch (terminal in, out;
terminal phi[0..1], vss, vdd)
3.4 Network Structure
The network body (ntw_body) is the statement part (stmt_part) bracketed by curly
brackets ({}). The statement part may contain instance, net and null statements. The
scope of the terminal, instance and node names in the network is local to the defined
network.
The Nelsis IC Design System