ALcad circuits, component library and SPICE analysis

Build and save circuits, select library parts and configure OP, DC, AC, transient and noise analysis.

ALcad Schematic edits analog and digital circuits. Built-in DC/RLC/digital calculations and SPICE use different engines. Choose the analysis offered by your Windows, Linux or Cloud host and read its availability message.

Create a circuit and use the library

  1. Open ALcad → Schematic, then New analog circuit or New digital circuit. You can begin with an official example and keep a separate editable copy.

  2. Search or expand a component category, select a part and click the canvas to place it. Escape cancels placement.

  3. Select a component and set its reference, value, rotation and parameters in Properties, checking units.

  4. Connect two pins to wire them. A geometric crossing alone does not join nets. Check ground and net names.

  5. Use favorites or personal collections for common parts. Organizing a library does not place a component or provide a missing SPICE model.

Check a small DC circuit

Connect a 5 V independent source and a 1,000 Ω resistor across ground. Run the available DC operating point action: expect 5 V across the resistor and a current magnitude of 0.005 A. Signs follow pin 1 → pin 2. A floating ground or contradictory ideal sources can make the system singular.

Configure and run SPICE

  1. Set Circuit analysis to SPICE · schematic, open Properties, expand SPICE analysis and choose Analysis type. The choices include DC operating point, DC source sweep, AC frequency sweep, Transient analysis and Small-signal noise.

  2. Enter the required fields, check circuit temperature and excitation, then apply the settings.

  3. Choose Run SPICE analysis when the host reports it available. If disabled, read the reason.

  4. After completion select traces and inspect units and the executed input. After editing, rerun instead of treating an old curve as current.

Analysis

Required setup

Read the result

DC operating point (OP)

Ground, values, DC sources and supported models

Node voltages and signed currents at one operating point

DC source sweep

Sweep source, start, stop and step

Response versus source voltage or current

AC frequency sweep

Source AC magnitude/phase, frequency scale, points and start/stop Hz

Small-signal magnitude and phase around the operating point

Transient analysis

Pulse, Sine or PWL source; time step and stop time in seconds

Response over time; refine the step and compare

Small-signal noise

Input source with positive AC magnitude, output/reference nets and frequencies

Noise around the DC operating point; check density and integrated-noise units

AC magnitude is not automatically normalized gain. Noise depends on the model and operating point; more frequency points refine integration, not an invalid circuit. Built-in linear RLC step response is separate from general ngspice transient analysis.

Use the expanded component library

Digital Design Studio 2.0.3 expands ALcad's circuit library to 155 kinds: 92 analog and 63 digital kinds across 35 bundled circuit examples. The library organizes these parts across 20 categories, including power semiconductors, CMOS 4000 packages, practical analog and power models, logic IC packages, and electrical I/O. Analog and digital circuits use separate analysis paths. A library entry supplies a model and pins; the selected host still determines whether its analysis can run.

  1. Open the intended project, switch to ALcad and open Circuit samples or your circuit document.

  2. Choose an analog or digital circuit. Search the component library by its English name, kind or symbol, then select the component and place it on the canvas.

  3. Select it to open Properties. Read the pin names, bus widths, units and Ideal / behavioral model notes before connecting it. A schematic coordinate is a drawing grid position, not a PCB dimension.

  4. Wire compatible pins. Check power/reference connections in an analog circuit and bus widths in a digital circuit. Rotate, duplicate and use Undo/Redo through the normal circuit editor.

  5. Run the analysis for that circuit's domain and inspect its status and diagnostics. Download the editable circuit document and reopen it before discarding your working copy.

Category

Parts and models

Power semiconductors

N/P logic-level and power MOSFETs, IGBT, SCR, TRIAC, DIAC, power Schottky diode, TVS diodes, Schottky bridge

Magnetics and conversion

Ideal and center-tapped transformers, ceramic resonator, N-bit ADC/DAC, VCO, XOR phase comparator

CMOS 4000 packages

4017 decade counter, 4013 dual D flip-flop, 4066 analog switch, 4051 analog multiplexer, 4093 Schmitt NAND

Displays, switches and connectors

RGB LED, 7-segment LED, piezo buzzer, SPDT/DPDT switches, push button, solar cell, Hall sensor, test point, 4-way connector, logic LED

Logic IC packages

7400/02/04/08/32/86 logic gates, 74138 decoder, 74151 MUX, 74161/163 counters, 74164/595 shift registers, 7474 DFF, 4511 BCD decoder

Analog and power models

Op-amps with finite poles/slew, voltage reference, LDO regulator, diode limiter, bridge rectifier, polyfuse

Sensors and actuators

NTC/PTC thermistors, photodiode, LDR, relay with flyback, DC motor, speaker

Measurement and tuning

Tapped potentiometer, variable capacitor, voltmeter, ammeter

Sampling and PWM

Comparator latch, PWM comparator, sample-and-hold

Passive components

Resistors, capacitors, inductors, potentiometer, variable resistor, coupled transformer, crystal, lamp, fuse

Mixed-signal behavioral models

4-bit ADC, 4-bit DAC, Schmitt trigger

Latches and memory

SR/D latches, ripple counter, 4-word ROM/RAM/register file

Decoders and displays

Hex-to-7-segment decoder, 7-segment display

Sources and ground

DC voltage/current sources, VCVS, VCCS, CCCS, CCVS, ground, behavioral sources, battery

Semiconductors

Diodes, Zener, Schottky, LED, NPN/PNP BJTs, NMOS/PMOS, N/P JFETs

Subcircuits

Subcircuit block, ideal op-amp, comparator, regulator, voltage/current switches, behavioral 555

Inputs and outputs

Digital inputs/outputs, clock, pulse generator, PWM generator

Logic gates

NOT, AND, NAND, OR, NOR, XOR, XNOR, multi-input gates, tri-state buffer, MUX/DEMUX, decoders/encoders, bus tap

Arithmetic and comparison

Half adder, full adder, 4-bit adder, unsigned bus comparator

Sequential logic

D flip-flops, async reset DFF, JK/T flip-flops, synchronous up/down counters, shift register

Example: a four-bit counter

  1. In Circuit samples, open 4-bit synchronous counter. Preserve an existing draft before switching examples.

  2. Select the counter in Properties and read its four-bit Q output and scalar CLK, RST and EN pins. The sample includes a clock and startup reset pulse.

  3. Keep Digital analysis → Time waveform selected. Registers and generators need a time waveform; they are not inputs to the combinational Truth table mode.

  4. Review Digital simulation and Duration (s), then choose Run digital simulation when the host offers execution.

  5. Inspect Q after reset and at subsequent clock edges. The expected model counts upward and wraps within its four-bit width. X before initialization is an unknown state. The model does not measure physical propagation delay.

  6. Use Download digital result JSON to retain the executed input/settings and recorded engine identity, or Download digital result CSV for samples. Keep the editable circuit file too. Editing wiring or parameters invalidates an earlier result.

For a memory exercise, open Register file read and write. WA selects the written word; RA and RB select independent read ports QA and QB. There are four words, each 1–16 bits wide. Initial word 0 through Initial word 3 must fit the chosen width. WE enables rising-edge writes; active-high RST clears memory. Unknown addresses/enables conservatively combine possible values. These are zero-delay teaching models, with no memory access or retention specification.

Example: an analog DAC staircase

  1. Open 4-bit DAC staircase (ideal) from Circuit samples.

  2. Select the DAC and inspect B0–B3, REF and OUT in Properties. B0 is the least significant bit. The bundled sample uses 5 V logic/reference values and a 10 kΩ load.

  3. Set Circuit analysis to SPICE · schematic. Open Properties → SPICE analysis, select Transient analysis in Analysis type and retain the sample's settings for a first run.

  4. Choose Apply analysis settings, then Run SPICE analysis if this host exposes the engine. Inspect the output waveform and diagnostics.

  5. The ideal source value is reference × unsigned code / 16. The load and output resistance affect the observed OUT voltage. Keep the input circuit, analysis settings and exported result together.

ADC/DAC bit pins are analog voltage levels inside one SPICE circuit. They do not connect a separate RTL document to an analog simulation. These models are continuous and unclocked, without sample/hold, noise or conversion delay. The separate digital simulator remains a different path.

Other starting points in Circuit samples are 555 astable LED flasher, Behavioral buck converter, H-bridge motor drive, 4017 LED sequencer, 74-series counter and 7-segment driver, Op-amp slew-rate comparison, Thermistor temperature dividers, Relay driver with flyback diode, Op-amp inverting amplifier (ideal), 5 V regulator (behavioral), 555 astable oscillator (behavioral), and Crystal RLC equivalent resonance. The crystal example is a passive equivalent circuit swept in frequency, not a self-starting oscillator. A fuse model illustrates thermal energy and trip state; it does not certify fault protection.

Save compatibility and execution limits

Expanded components require alcad.circuit/v18, latches and memory require alcad.circuit/v19, practical components require alcad.circuit/v20, and power, CMOS 4000 and I/O components require alcad.circuit/v21. Older documents (v1–v20) keep their schema and canonical bytes when opened without a change that requires an upgrade. Placing a new component upgrades the document to the required schema version (alcad.circuit/v18–v21), and deleting it later does not downgrade the file. Keep an original backup if you must reopen it in an older ALcad.

The basic DC and linear RLC solvers retain their supported element sets. Choose SPICE for the supported nonlinear analog models. Digital execution retains its bounded samples, nets and primitive-cell limits; latches and ripple networks consume settlement frames within those limits. A refused or unavailable run is not a successful zero-valued result.

See ALcad for host support and SPICE DC operating point for the separate saved-netlist R/I and R/I/V workflows.

Corner and tolerance comparison

When the selected SPICE host offers comparisons, keep the baseline circuit, models, settings and variation choices with results. Change one factor at a time and read failed or skipped cases alongside successful curves. Coverage is limited to the models and variations actually executed.

Import, save and export

  1. Keep the original before importing an editable circuit, netlist or supported external format.

  2. Review components, pin order, values, models and diagnostics before saving. Import success does not establish engine coverage.

  3. Use Download circuit for an editable .alcad-circuit.json. Windows Save circuit to project and Open circuit from project use alcad/documents/circuit in the project.

  4. Where offered, save the netlist and JSON/CSV results or circuit report with the editable source. In Cloud, download a copy when project saving is unavailable.

  5. Reopen the saved circuit and check values and wiring. Preserve session stimulus and executed results separately.

Troubleshooting

Problem

Check

Floating or singular circuit

Ground, disconnected pins, source constraints and supported elements

Empty AC plot

Nonzero AC excitation, output, frequencies and completion

Noise refused

Input source, positive AC magnitude, output/reference net and model support

Digital X or width error

Initial state, clocks, matching widths and one driver per net

SPICE unavailable

Use a host offering the engine; repeated clicks or netlist import do not enable it

Related guides

ALcad · SPICE DC file · PCB · 3D CAD