DIYbanter

DIYbanter (https://www.diybanter.com/)
-   Electronic Schematics (https://www.diybanter.com/electronic-schematics/)
-   -   Logic Function Models That Simulate on Analog Simulators... (https://www.diybanter.com/electronic-schematics/369649-logic-function-models-simulate-analog-simulators.html)

Jim Thompson[_3_] April 9th 14 11:23 PM

Logic Function Models That Simulate on Analog Simulators...
 
Logic Function Models That Simulate on Analog Simulators, see...

"LogicFunctions_Basic.lib"

on the Device Models & Subcircuits page of my website.

Basic functionality, output stages to be added.

Experimenting, nothing as complex as the "FauxFET" is required, as I
first thought.

In a few more days, I expect to release models that only require
entering parameters for TR, TF, TD, ISOURCE, ISINK, CEQUIV to match
most off-the-shelf devices.

...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.

Jim Thompson[_3_] April 13th 14 06:16 PM

Logic Function Models That Simulate on Analog Simulators...
 
On Wed, 09 Apr 2014 15:23:21 -0700, Jim Thompson
wrote:

Logic Function Models That Simulate on Analog Simulators, see...

"LogicFunctions_Basic.lib"

on the Device Models & Subcircuits page of my website.

Basic functionality, output stages to be added.

Experimenting, nothing as complex as the "FauxFET" is required, as I
first thought.

In a few more days, I expect to release models that only require
entering parameters for TR, TF, TD, ISOURCE, ISINK, CEQUIV to match
most off-the-shelf devices.

...Jim Thompson


Got a wee bit ahead of myself. As I experimented, I decided that the
fundamental elements should include their own delay parameters, rather
than there being a global declaration.

Thus FUNC_BUF becomes...

..SUBCKT FUNC_BUF A Y VN PARAMS: TP=10ns
V_VDEL N_1 VN 1V
G_G2 N_2 VN VALUE {V(A,VN)*10nA}
G_G1 N_1 N_2 VALUE {(-V(A,VN)+1)*10nA}
C_C1 N_2 VN {20u*TP}
E_E1 Y VN VALUE {(1+TANH(2.944K*(V(N_2,VN)-0.5)))/2}
RCON_TAG1 N_2 0 1G
G_GLC1 N_1 N_2 VALUE
{(V(A,VN))*(10uA)*(1+TANH(246.6644*(V(N_1,N_2)-15m)))/2}
G_GLC2 N_2 VN VALUE
{(-V(A,VN)+1)*(10uA)*(1+TANH(246.6644*(V(N_2,VN)-15m)))/2}
..ENDS FUNC_BUF

(Unwrap those two GLC lines.)

Thus (as in real life) gate "innards" are much faster than the I/O
pins which are encumbered with capacitive package parasitics and
external loads.

So the plan is to now go back and develop the I/O functions with their
own separate propagation and transition times specifiable.

Caution, to handle any logic type, I've defined all the _basic_
elements for input and output of 0 = 1V.

The I/O pin functions will provide the logic family matching of levels
and timing.

Note that these logic elements will run on most any simulator
(including LTspice), since they are ANALOG.

Some older simulators may require changes of the VALUE devices to
B-source syntax.

...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.

Jim Thompson[_3_] April 14th 14 04:45 PM

Digital Primitives Library Now on my Website... Simulate on Any Simulator
 
Digital Primitives Library Now on my Website

(Device Models & Subcircuits Page, "DigitalPrimitives.zip")

INVerter, BUFfer, AND, NAND, OR, NOR (complex functions to follow).

These models will simulate on most any simulator... they do not
require a proprietary digital interface.

A R-S Flip-Flop example is included.

...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.

Jim Thompson[_3_] April 22nd 14 05:59 PM

UPDATED! Logic Function Models That Simulate on Analog Simulators...
 
UPDATED!

Logic Function Models That Simulate on Analog Simulators, see...

"DigitalPrimitives.zip"

on the Device Models & Subcircuits page of my website...

http://www.analog-innovations.com/

Improving my approach, I've settled on splitting Inputs and Outputs as
separate structures in the models, making it easier to build complex
function.

Input Cells now contain only delay definition (and hysteresis, if
desired).

Output Cells will perform the combinational logic, model the power
consumption (CPD) and the load drive capabilities.

...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| San Tan Valley, AZ 85142 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine. Sometimes I even put it in the food.


All times are GMT +1. The time now is 11:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2014 DIYbanter