In January 2015 I was playing with
LTspice IV and decided to create a number of
reusable blocks of CMOS logic for our
nedoPC.org community.
Later I started adding CMOS layouts, created in
Magic VLSI Layout Tool v8.0, and some were even
silicon proven in October 2015 for CMOS 0.5um technology...
http://nedopc.org/nedopc/files/nedocon-cmoslib.zip (693K) v1.0alpha (March 2016)This PUBLIC DOMAIN archive consists of a number of close to reality
CMOS blocks for LTspice IV in form of ASC and ASY files that you need
to copy (from "sym" subfolder) to
C:\Program Files\LTC\LTspiceIV\lib\sym\You can see internals of any block and you can use it anywhere.
Tests are also included with screenshots of oscillograms. Enjoy!
cmos-not - NOT gate (invertor)
cmos-nand - 2-input NOT-AND gate
cmos-nand3 - 3-input NOT-AND gate
cmos-nor - 2-input NOT-OR gate
cmos-nor3 - 3-input NOT-OR gate
cmos-tgate - transmission gate (SPST switch)
cmos-tgate2 - 2 transmission gates connected as SPDT switch
Then it will be xor, nor-and, rs-trig, d-trig, mux2, mux4, mux8 etc.
P.S. Used book:
Uyemura, John P. Circuit design for CMOS VLSI. 1992 (11th printing 1998) ISBN 0-7923-9184-5P.P.S. On January 8th, 2016 I started adding silicon proven Magic layouts here...