1. Watch the Video
2. Importing a Netlist Using the Arbitrary SPICE Block
The Arbitrary SPICE Block is a special portless component that allows a netlist to be inserted directly within the simulation netlist. The Arbitrary SPICE Block provides the same SPICE/XSPICE support as inherently supported in NI Multisim, including PSpice device and parameter support.
Figure 1: The Arbitrary SPICE Block
How to Import a Netlist Using the Arbitrary SPICE Block:
- Open the Component Browser (Place > Component)
- In the Basic group, Basic Virtual family, select the Arbitrary SPICE Block and click OK
- Left-click to place the component on the schematic
- Double-click on the component to invoke its Component Properties
- Paste the SPICE netlist to be simulated (as shown in Figure 2)
- Click OK
Figure 2: Pasted netlist within the Arbitrary SPICE Block
At this point, customizable analyses can be invoked in the same way as with a regular schematic in Multisim.
Note: It is possible to add wires and components to the schematic to be simulated alongside the Arbitrary SPICE Block. Virtual connections will automatically be formed when net names on the schematic have the same names as nets within the Arbitrary SPICE Block netlist. To avoid unnecessary conflicts, verify that net names on the schematic do not interfere with net names within the imported netlist. In cases where a virtual connection is desired (for example, to interface with an interactive simulation instrument), virtual connections should be explicitly marked using on-page connectors.
To form a virtual on-page connection:
- Select the On-Page Connector type by navigating to Place > Connectors > On-Page Connector
- Attach a net to this connector and wire it to the desired virtual instruments (for example, an oscilloscope). Ensure that the net name is named identically to the desired net in the subcircuit to assure a proper connection.
3. Importing a Netlist Saved with a .CIR Extension
NI Multisim also has the ability to import basic netlists saved using a .cir extension. Upon import, Multisim will attempt to generate the schematic representation of the netlist elements.
How to Import a Netlist Saved with a .cir Extension:
- Ensure that the text-based SPICE netlist to be imported has been saved with a .cir extension
- Select File > Open, and navigate to the location where the SPICE netlist has been saved. Multisim will now generate the schematic representation of this netlist (as shown in Figure 3).
Note: The purpose of this feature is to import standard Berkeley SPICE netlists. As a result, complex subcircuits and parameters may not be supported by this feature. Commands and analyses are ignored by the netlist import, as well as the first line of the SPICE netlist (which is defined as the title line). The Results tab of the Spreadsheet View will provide updates on the status of the netlist import.
In this example, we will import the following SPICE netlist into Multisim:
** RLC Circuit **
vs 1 0 dc 0 ac 1 SIN(0VOFF 1VPEAK 2KHZ)
r1 1 2 100
c1 2 3 1e-005
l1 3 0 0.1
- Open a text editor, and paste in the block of code shown above
- Save the file as SPICE-Import.cir
- In Multisim, select File > Open and select the SPICE-Import.cir file
- Multisim will now generate the associated schematic representation (as shown in Figure 3).
Figure 3: Schematic representation of the netlist generated upon .cir file import
In this technical article, we have explored two methods available in Multisim for importing a SPICE netlist. The Arbitrary SPICE Block provides for quick simulation of SPICE, XSPICE and PSpice-based netlists by allowing the direct insertion of a SPICE netlist within a special portless component on the schematic. The ability to open .cir netlists allows for the generation of simple schematics upon import.