Product Documentation
Spectre AMS Designer and Xcelium Simulator Mixed-Signal User Guide
Product Version 22.09, September 2022

Port Bindings

You can connect an instance of an analog primitive by linking the formal port name of the Spectre or SPICE master with the actual name declared in the instantiating module. For example, in the following instantiations 1 and 2 are the formal port names for the Spectre built-in primitive resistor and p and n are formal port names for the Spectre subcircuit my_subckt_cap.

resistor #(.r(100)) R1 (.1(src), .2(out));
my_subckt_cap #(.c(50n)) C1 (.p(out), .n(gnd));

The formal names of the ports for Spectre built-in primitives can be found in the "Component Statements" chapter of Spectre Circuit Simulator Reference manual.

The following capabilities apply to the port expressions of the instantiations of analog primitives when you are binding ports by name.

Binding Ports by Order

You can also connect an instance of an analog primitive by implicitly linking the formal port name of the Spectre or SPICE master with the actual name declared in the instantiating module. For example, the following instantiations omit the formal port names for the Spectre built-in primitive resistor and for the Spectre subcircuit my_subckt_cap but use the known ordering of those names to establish connections with the actual names used in the instantiating module.

resistor #(.r(100)) R1 (src, out);
my_subckt_cap #(.c(50n)) C1 (out, gnd);

Related Topics



 ⠀
X