When you design a simulation, set up the required sources of analog power and digital signals, using parts from the ngspice-simulation and ngspice-digital libraries. These parts are compatible with SPICE (Simulation Program with Integrated Circuit Emphasis).