Back to Forums
1 post / 0 new
#1 Jan 19, 2023
Emrys
Offline
Last seen: 1 year 2 months ago
Joined: 2022-02-23 12:54

Netlist to change PSpice digital output to analog voltage output

Hello,

I'm working on developing a SPICE model to provide a complex digital function (counter) that provides analog behavior at the pins (input threshold, impedance, leakage; output impedance). Can anyone share a netlist or PSpice library function that will allow changing a PSpice digital function to a PSpice analog voltage? I have attempted to connect my own netlists to the existing PSpice digital library devices, but it just results in errors.

This is my current netlist for an input circuit:

** Generic testing input model
.SUBCKT INPUT_CMOS OUT IN VCC VEE
ETHR VTHR VEE TABLE {V(VCC,VEE)} =
+(1,0.5)
+(10,5)
* Outputs 1 or 0 only (ideal output)
EOUT OUT VEE VALUE = {0.5*(SGN(V(IN,VTHR)) + ABS(SGN(V(IN,VTHR))))}
.ENDS

Any assistance is appreciated.

Download PSpice and try it for free! Download Free Trial
Cadence