Browse Source
Fix the NAND and NOR variants of XSPICE code model multi_input_pwl
Fix the NAND and NOR variants of XSPICE code model multi_input_pwl
and add an example of its use with the E-source NAND variant.pre-master-46
committed by
Holger Vogt
4 changed files with 94 additions and 16 deletions
-
8examples/digital/compare/adder-comparison.txt
-
16examples/digital/compare/adder_esource.cir
-
78src/xspice/icm/analog/multi_input_pwl/cfunc.mod
-
8src/xspice/icm/analog/multi_input_pwl/ifspec.ifs
@ -0,0 +1,16 @@ |
|||
ADDER - 4 BIT BINARY ADDER USING E-SOURCE AND GATES |
|||
* behavioral gate description |
|||
|
|||
*** SUBCIRCUIT DEFINITION |
|||
|
|||
.SUBCKT 74HC00 in1 in2 out NVCC NVGND vcc1={vcc} tripdt1={tripdt} |
|||
.param Rout={60*4.0/(vcc1-0.5)} ; standard output driver |
|||
E1 out20 0 nand(2) in1 0 in2 0 ({vcc / 3}, 0) ({2 * vcc / 3}, {vcc}) |
|||
Rout out20 out {Rout} |
|||
.ends |
|||
|
|||
.param vcc=3 tripdt=6n |
|||
|
|||
.include ../adder_common.inc |
|||
|
|||
.END |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue