For sometime now I have been trying to build a behavioral model of logic gates that was consistent with real-world behavior when mixed into an Analog environment.
(Existing logic models, such as those in PSpice and LTspice are state machines and do not behave properly when used for Analog applications, such as when you build a crystal oscillator around a 74HCU04.)
So I now invite you to visit the Device Models & Subcircuits page of my website...
and take a look at FauxMOSFET.pdf, where I have finally created a purely mathematical behavioral model of a MOSFET... using, of course, my favorite math function TANH :-)
With all derivatives continuous, it is suitable for modeling logic elements that can be run in an Analog simulator environment.
Watch this space for further announcements as I develop inverters, gates and complex functions that will run on any old analog simulator. ...Jim Thompson