Instanciation
Contents Up Previous Next

Instanciation

The components are instanciated with the following syntax:
<component_name> <instance_name> ( @node1, @node2, ..., parameter1, parameter2, ... ); 
The nodes are notified with the "@" symbol. The number of nodes is illimited. The parameters have no prefix symbol. They can be of the form :

  • constant : 16K
  • equation : 100*sin(1000*t)
  • omitted : in this case, the default parameter value applies ( see component declaration )

Example:

component graetz_bridge {

	VSIN 	 V( @2, @3, 10, 4000, PI/4 );		
	C      C( @5, @4, 1u );		
	D      D1( @1, @2 );
	D      D2( @1, @3 );
	D      D3( @2, @4 );
	D      D4( @3, @4 );
	R      R2( @1, @5 );	// resistor value is omitted
	R      R1( @4, @5, %R(1000,10,5000) );
}