home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p064 / 5.ddi / DIGFILE.LIB < prev    next >
Encoding:
Text File  |  1991-07-01  |  13.7 KB  |  450 lines

  1. * Library of digital input and output devices for Digital Files option
  2.  
  3. * Copyright 1987, 1988, 1990 by MicroSim Corporation
  4. *   Neither this library nor any part may be copied without the express
  5. *   written consent of MicroSim Corporation
  6.  
  7. * Release date: January, 1991
  8.  
  9. *** digital input devices *****************************************************
  10.  
  11. * The parameters in this library were derived from:
  12. *
  13. *   The TTL Data Book, Texas Instruments, 1985
  14. *     vol. 2, pp 1-21 to 1-26
  15. *   Supplement to TTL Data Book, Texas Instruments, 1984
  16. *     vol. 3, pp 3-17 to 3-19
  17. *   High-speed CMOS Logic Data Book, Texas Instruments, 1984
  18. *     pp 2-4 to 2-16
  19. *   CMOS Integrated Circuits Databook, RCA Solid State, 1983
  20. *     pp 44-55
  21.  
  22. * Example use:  N3 out 0 VCC DIN74LS
  23. *    VCC must be connected to a +5 volt supply
  24.  
  25. * Notes:
  26. * 1) Unlike the other libraries, this one is not ready to use as it is.
  27. *    Each .MODEL statement has 3 parameters missing: the name of the
  28. *    file to read for digital input, the format of that file, and the
  29. *    file's time step.  You must supply these parameters before using
  30. *    these models.  Also, you may need to change the characters used
  31. *    to designate the low, high, unknown, and high impedance states;
  32. *    these models use "0", "1", "X", and "Z".  We have set the "X"
  33. *    state to be halfway between the "0" and "1" states; you can
  34. *    change this if it is not appropriate for your application.
  35. *    Because you will want to make some or all of these changes,
  36. *    we recommend making a working copy of this file instead of using
  37. *    the original.
  38. * 2) Each logic family has one or more digital input devices in this
  39. *    library: standard drive, buffer drive, and open-collector drive.
  40. *    These devices are the output stage of the digital component, but
  41. *    are called "digital input devices" because they provide input to
  42. *    the analog circuitry.  The 54 series of families have the same
  43. *    parameters as the 74 series.  The 54/74HCT family has the same
  44. *    parameters as the 54/74HC family.
  45. * 3) The values in these models only work properly if the low-level
  46. *    node (the 2nd node) in the "N" device is connected to ground and
  47. *    the high-level node (the 3rd node) is connected to VCC.  For the
  48. *    bipolar families VCC must be +5 volts (this includes open-collector
  49. *    outputs); for the 74HC CMOS family VCC must be between +4.5 and +6
  50. *    volts; for the 4000 CMOS family VCC must be between +3 and +18 volts.
  51. *    The first node is the output of the "N" device.
  52. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  53. * 74LS family
  54.  
  55. *   standard drive
  56. *
  57. .model DIN74LS dinput(
  58. +    s0name = "0", s0tsw = 8ns, s0rlo = 30.6 s0rhi = 1.5k,
  59. +    s1name = "1", s1tsw = 8ns, s1rlo = 203  s1rhi = 87.1,
  60. +    s2name = "X", s2tsw = 4ns, s2rlo = 78.8 s2rhi = 361)
  61.  
  62. *   buffer drive
  63. *
  64. .model DIN74LSB dinput(
  65. +    s0name = "0", s0tsw = 8ns, s0rlo = 7.96 s0rhi = 226,
  66. +    s1name = "1", s1tsw = 8ns, s1rlo = 203  s1rhi = 87.1,
  67. +    s2name = "X", s2tsw = 4ns, s2rlo = 40.2 s2rhi = 140,
  68. +    s3name = "Z", s3tsw = 8ns, s3rlo = 200k s3rhi = 200k)
  69.  
  70. *   open-collector output
  71. *
  72. .model DIN74LSOC dinput(
  73. +    s0name = "0", s0tsw = 8ns, s0rlo = 30.6 s0rhi = 1.5k,
  74. +    s1name = "1", s1tsw = 8ns, s1rlo = 200k s1rhi = 200k,
  75. +    s2name = "X", s2tsw = 4ns, s2rlo = 2470 s2rhi = 17.3k)
  76. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  77. * 74 family (standard TTL)
  78.  
  79. *   standard drive
  80. *
  81. .model DIN74 dinput(
  82. +    s0name = "0", s0tsw = 5ns, s0rlo = 8.54 s0rhi = 38.9,
  83. +    s1name = "1", s1tsw = 8ns, s1rlo = 486  s1rhi = 209,
  84. +    s2name = "X", s2tsw = 4ns, s2rlo = 64.4 s2rhi = 90.1,
  85. +    s3name = "Z", s3tsw = 8ns, s3rlo = 100k s3rhi = 100k)
  86.  
  87. *   open-collector output
  88. *
  89. .model DIN74OC dinput(
  90. +    s0name = "0", s0tsw = 5ns, s0rlo = 8.54 s0rhi = 38.9,
  91. +    s1name = "1", s1tsw = 8ns, s1rlo = 100k s1rhi = 100k,
  92. +    s2name = "X", s2tsw = 4ns, s2rlo = 924  s2rhi = 1970)
  93. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  94. * 74S family
  95.  
  96. *   standard drive
  97. *
  98. .model DIN74S dinput(
  99. +    s0name = "0", s0tsw = 2.5ns, s0rlo = 10.9 s0rhi = 292,
  100. +    s1name = "1", s1tsw = 2.5ns, s1rlo = 174  s1rhi = 74.6,
  101. +    s2name = "X", s2tsw = 1.3ns, s2rlo = 43.5 s2rhi = 148,
  102. +    s3name = "Z", s3tsw = 5ns,   s3rlo = 40k  s3rhi = 40k)
  103.  
  104. *   open-collector output
  105. *
  106. .model DIN74SOC dinput(
  107. +    s0name = "0", s0tsw = 2.5ns, s0rlo = 10.9 s0rhi = 292,
  108. +    s1name = "1", s1tsw = 2.5ns, s1rlo = 40k  s1rhi = 40k,
  109. +    s2name = "X", s2tsw = 1.3ns, s2rlo = 660  s2rhi = 3420)
  110. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  111. * 74ALS family
  112.  
  113. *   standard drive
  114. *
  115. .model DIN74ALS dinput(
  116. +    s0name = "0", s0tsw = 1ns, s0rlo = 30.6 s0rhi = 1.5k,
  117. +    s1name = "1", s1tsw = 3.5ns,s1rlo= 174  s1rhi = 74.6,
  118. +    s2name = "X", s2tsw = 2ns, s2rlo = 73.0 s2rhi = 335)
  119.  
  120. *   buffer drive
  121. *
  122. .model DIN74ALSB dinput(
  123. +    s0name = "0", s0tsw = 3ns, s0rlo = 10.8 s0rhi = 328,
  124. +    s1name = "1", s1tsw = 3.5ns,s1rlo= 62.5 s1rhi = 146,
  125. +    s2name = "X", s2tsw = 3ns, s2rlo = 26.0 s2rhi = 219,
  126. +    s3name = "Z", s3tsw = 4ns, s3rlo = 100k s3rhi = 100k)
  127.  
  128. *   open-collector output
  129. *
  130. .model DIN74ALSOC dinput(
  131. +    s0name = "0", s0tsw = 1ns, s0rlo = 30.6 s0rhi = 1.5k,
  132. +    s1name = "1", s1tsw = 3.5ns,s1rlo= 100k s1rhi = 100k,
  133. +    s2name = "X", s2tsw = 2ns, s2rlo = 1750 s2rhi = 12.2k)
  134. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  135. * 74AS family
  136.  
  137. *   standard drive
  138. *
  139. .model DIN74AS dinput(
  140. +    s0name = "0", s0tsw = 1ns, s0rlo = 10.9 s0rhi = 292,
  141. +    s1name = "1", s1tsw = 1.5ns,s1rlo= 97.3 s1rhi = 41.7,
  142. +    s2name = "X", s2tsw = 1ns, s2rlo = 32.6 s2rhi = 110)
  143.  
  144. *   buffer drive
  145. *
  146. .model DIN74ASB dinput(
  147. +    s0name = "0", s0tsw = 1ns, s0rlo = 3.28 s0rhi = 93.2,
  148. +    s1name = "1", s1tsw = 1.5ns,s1rlo= 15.1 s1rhi = 35.3,
  149. +    s2name = "X", s2tsw = 1ns, s2rlo = 7.04 s2rhi = 57.4,
  150. +    s3name = "Z", s3tsw = 2ns, s3rlo = 40k  s3rhi = 40k)
  151.  
  152. *   open collector output
  153. *
  154. .model DIN74ASOC dinput(
  155. +    s0name = "0", s0tsw = 1ns, s0rlo = 10.9 s0rhi = 292,
  156. +    s1name = "1", s1tsw = 1.5ns,s1rlo= 40k  s1rhi = 40k,
  157. +    s2name = "X", s2tsw = 1ns, s2rlo = 660  s2rhi = 3420)
  158. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  159. * 74HC family
  160.  
  161. *   standard drive
  162. *
  163. .model DIN74HC dinput(
  164. +    s0name = "0", s0tsw = 400ns, s0rlo = 30    s0rhi = 10MEG,
  165. +    s1name = "1", s1tsw = 400ns, s1rlo = 10MEG s1rhi = 40,
  166. +    s2name = "X", s2tsw = 200ns, s2rlo = 17.3k s2rhi = 20.0k)
  167.  
  168. *   buffer drive
  169. *
  170. .model DIN74HCB dinput(
  171. +    s0name = "0", s0tsw = 400ns, s0rlo = 20    s0rhi = 10MEG,
  172. +    s1name = "1", s1tsw = 400ns, s1rlo = 10MEG s1rhi = 26.7,
  173. +    s2name = "X", s2tsw = 200ns, s2rlo = 14.1k s2rhi = 16.3k,
  174. +    s3name = "Z", s3tsw = 400ns, s3rlo = 10MEG s3rhi = 10MEG)
  175.  
  176. *   open-drain output
  177. *
  178. .model DIN74HCOD dinput(
  179. +    s0name = "0", s0tsw = 400ns, s0rlo = 30    s0rhi = 10MEG,
  180. +    s1name = "1", s1tsw = 400ns, s1rlo = 10MEG s1rhi = 10MEG,
  181. +    s2name = "X", s2tsw = 200ns, s2rlo = 17.3k s2rhi = 10MEG)
  182. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  183. * 4000 CMOS family (A and B series)
  184.  
  185. *   standard drive
  186. *
  187. .model DIN4000 dinput(
  188. +    s0name = "0", s0tsw = 400ns, s0rlo = 225   s0rhi = 10MEG,
  189. +    s1name = "1", s1tsw = 400ns, s1rlo = 10MEG s1rhi = 225,
  190. +    s2name = "X", s2tsw = 200ns, s2rlo = 47.4k s2rhi = 47.4k)
  191.  
  192. *   buffer drive
  193. *
  194. .model DIN4000B dinput(
  195. +    s0name = "0", s0tsw = 400ns, s0rlo = 53.3  s0rhi = 10MEG,
  196. +    s1name = "1", s1tsw = 400ns, s1rlo = 10MEG s1rhi = 53.3,
  197. +    s2name = "X", s2tsw = 200ns, s2rlo = 23.1k s2rhi = 23.1k,
  198. +    s3name = "Z", s3tsw = 400ns, s3rlo = 10MEG s3rhi = 10MEG)
  199.  
  200. *   open-drain output
  201. *
  202. .model DIN4000OD dinput(
  203. +    s0name = "0", s0tsw = 400ns, s0rlo = 225   s0rhi = 10MEG,
  204. +    s1name = "1", s1tsw = 400ns, s1rlo = 10MEG s1rhi = 10MEG,
  205. +    s2name = "X", s2tsw = 200ns, s2rlo = 47.4k s2rhi = 10MEG)
  206. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  207.  
  208. *** digital output devices ****************************************************
  209.  
  210. * The parameters in this model library were derived from:
  211. *
  212. *   The TTL Data Book, Texas Instruments, 1985
  213. *     vol. 2, pp 1-21 to 1-26 and pp 3-79 to 3-81
  214. *   Supplement to TTL Data Book, Texas Instruments, 1984
  215. *     vol. 3, pp 3-17 to 3-19
  216. *   High-speed CMOS Logic Data Book, Texas Instruments, 1984
  217. *     pp 2-4 to 2-16
  218. *   CMOS Integrated Circuits Databook, RCA Solid State, 1983
  219. *     pp 44-55
  220.  
  221. * Example use:  O3 bus3 0 DO74
  222. *               X3 bus3 0 VCC DO74LS
  223.  
  224. * Notes:
  225. * 1) Unlike the other libraries, this one is not ready to use as it is.
  226. *    Each .MODEL statement has 3 parameters missing: the name of the
  227. *    file to read for digital input, the format of that file, and the
  228. *    file's time step.  You must supply these parameters before using
  229. *    these models.  Also, you may need to change the characters used
  230. *    to designate the low, high, and unknown states; these models use
  231. *    "0", "1", and "X".  You can change this if it is not appropriate
  232. *    for your application.  Because you will want to make some or all
  233. *    of these changes, we recommend making a working copy of this file
  234. *    instead of using the original.
  235. * 2) The "O" devices are the input stage of the digital component, but
  236. *    are called "digital output devices" because they provide output
  237. *    from the analog circuitry.  Each TTL logic family has two digital
  238. *    output devices in this library: a simple model and a more elaborate
  239. *    model.  The simple model is a .MODEL statement and translates a
  240. *    voltage into a logic state.  The elaborate model is a .SUBCKT
  241. *    definition and contains the simple model plus components which
  242. *    provide electrical loading.  We recommend using the simple model
  243. *    if you can: it takes up less memory and less computer time.  The
  244. *    CMOS families have only a simple model which includes their
  245. *    capacitive loading.
  246. * 3) If you use the simple model, you must place "O" devices, with the
  247. *    2nd node connected to ground.  If you use the elaborate model, you
  248. *    must place "X" devices.
  249. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  250. * 74/54 family (standard TTL), elaborate model
  251.  
  252. *   standard
  253. *
  254. * connections:   gate's input
  255. *                |
  256. .subckt DO74     1
  257. *
  258. O0    1    0    DOTTL
  259. D0    0    1    D74
  260. D1    2    1    D74
  261. R1    2    3    1k
  262. V1    3    0    2v
  263. R2    1    4    100k
  264. V2    4    0    5v
  265. .ends
  266. .model D74 D(is=1e-16 rs=25 cjo=2pf)
  267.  
  268. *   Schmidt trigger
  269. *
  270. * connections:   gate's input
  271. *                |
  272. .subckt DO74SCH  1
  273. *
  274. O0    1    0    DOTTLSCH
  275. D0    0    1    D74
  276. D1    2    1    D74
  277. R1    2    3    1k
  278. V1    3    0    2v
  279. R2    1    4    100k
  280. V2    4    0    5v
  281. .ends
  282. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  283. * 74/54LS family, elaborate model
  284.  
  285. *   standard
  286. *
  287. * connections:   gate's input
  288. *                |
  289. .subckt DO74LS   1
  290. *
  291. O0    1    0    DOTTL
  292. D0    0    1    D74S
  293. D1    2    1    D74S
  294. R1    2    3    1k
  295. V1    3    0    2v
  296. R2    1    4    100k
  297. V2    4    0    5v
  298. .ends
  299.  
  300. *   Schmidt trigger
  301. *
  302. * connections:     gate's input
  303. *                  |
  304. .subckt DO74LSSCH  1
  305. *
  306. O0    1    0    DOTTLSCH
  307. D0    0    1    D74S
  308. D1    2    1    D74S
  309. R1    2    3    4k
  310. V1    3    0    2v
  311. R2    1    4    200k
  312. V2    4    0    5v
  313. .ends
  314. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  315. * 74/54S family, elaborate model
  316.  
  317. *   standard
  318. *
  319. * connections:   gate's input
  320. *                |
  321. .subckt DO74S    1
  322. *
  323. O0    1    0    DOTTL
  324. D0    0    1    D74S
  325. D1    2    1    D74S
  326. R1    2    3    .8k
  327. V1    3    0    2v
  328. R2    1    4    80k
  329. V2    4    0    5v
  330. .ends
  331.  
  332. *   Schmidt trigger
  333. *
  334. * connections:   gate's input
  335. *                |
  336. .subckt DO74SSCH 1
  337. *
  338. O0    1    0    DOTTLSCH
  339. D0    0    1    D74S
  340. D1    2    1    D74S
  341. R1    2    3    .8k
  342. V1    3    0    2v
  343. R2    1    4    80k
  344. V2    4    0    5v
  345. .ends
  346. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  347. * 74/54ALS family, elaborate model
  348.  
  349. *   standard
  350. *
  351. * connections:   gate's input
  352. *                |
  353. .subckt DO74ALS  1
  354. *
  355. O0    1    0    DOTTL
  356. D0    0    1    D74S
  357. D1    2    1    D74S
  358. R1    2    3    16k
  359. V1    3    0    2v
  360. R2    1    4    200k
  361. V2    4    0    5v
  362. .ends
  363.  
  364. *   Schmidt trigger
  365. *
  366. * connections:     gate's input
  367. *                  |
  368. .subckt DO74ALSSCH 1
  369. *
  370. O0    1    0    DOTTLSCH
  371. D0    0    1    D74S
  372. D1    2    1    D74S
  373. R1    2    3    16k
  374. V1    3    0    2v
  375. R2    1    4    200k
  376. V2    4    0    5v
  377. .ends
  378. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  379. * 74/54AS family, elaborate model
  380.  
  381. *   standard
  382. *
  383. * connections:   gate's input
  384. *                |
  385. .subckt DO74AS   1
  386. *
  387. O0    1    0    DOTTL
  388. D0    0    1    D74S
  389. D1    2    1    D74S
  390. R1    2    3    16k
  391. V1    3    0    2v
  392. R2    1    4    200k
  393. V2    4    0    5v
  394. .ends
  395.  
  396. *   Schmidt trigger
  397. *
  398. * connections:   gate's input
  399. *                |
  400. .subckt DO74ASSCH 1
  401. *
  402. O0    1    0    DOTTLSCH
  403. D0    0    1    D74S
  404. D1    2    1    D74S
  405. R1    2    3    16k
  406. V1    3    0    2v
  407. R2    1    4    200k
  408. V2    4    0    5v
  409. .ends
  410. .model D74S D(is=1e-11 rs=25 cjo=2pf)
  411. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  412. * Simple models
  413.  
  414. *   TTL (also includes 54/74 LS, S, ALS, AS, HCT families)
  415. *
  416. .model DOTTL doutput(
  417. +    s0name = "0", s0vlo = -1.5, s0vhi = 0.9,
  418. +    s1name = "1", s1vlo =  1.1, s1vhi = 7.0,
  419. +    s2name = "X", s2vlo =  0.9, s2vhi = 1.1)
  420.  
  421. *   TTL, schmidt trigger (also includes 54/74 LS, S, ALS, AS, HCT families)
  422. *
  423. .model DOTTLSCH doutput(
  424. +    s0name = "0", s0vlo = -1.5, s0vhi = 1.66,
  425. +    s1name = "1", s1vlo = 0.86, s1vhi = 7.0)
  426.  
  427. *   74/54HC CMOS (VCC = 5v)
  428. *
  429. .model DOHC doutput(cload = 3pf,
  430. +    s0name = "0", s0vlo = -.5, s0vhi = 2.0,
  431. +    s1name = "1", s1vlo = 2.5, s1vhi = 7.0,
  432. +    s2name = "X", s2vlo = 2.0, s2vhi = 2.5)
  433.  
  434. *   74/54HC CMOS (VCC = 5v), schmidt trigger
  435. *
  436. .model DOHCSCH doutput(cload = 3pf,
  437. +    s0name = "0", s0vlo = -.5, s0vhi = 2.5,
  438. +    s1name = "1", s1vlo = 2.0, s1vhi = 7.0)
  439.  
  440. *   4000 CMOS (VCC = 10v)
  441. *
  442. .model DO4000 doutput(cload = 5pf,
  443. +    s0name = "0", s0vlo = -.5, s0vhi = 5.0,
  444. +    s1name = "1", s1vlo = 5.5, s1vhi = 10.5,
  445. +    s2name = "X", s2vlo = 5.0, s2vhi = 5.5)
  446.  
  447. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  448.  
  449. * end of library file
  450.