Corrected a few errors in the implementation of "csubcircuit",

now fully tested and verified.
This commit is contained in:
Tim Edwards 2018-10-30 21:56:05 -04:00
parent e20319f3c1
commit fa17436fef
3 changed files with 3 additions and 3 deletions

View File

@ -672,6 +672,7 @@ spcdevHierVisit(hc, dev, scale)
/* Drop through to below (no break statement) */
case DEV_SUBCKT:
case DEV_CSUBCKT:
/* Subcircuit is "Xnnn gate [source [drain [sub]]]" */
/* Subcircuit .subckt record must be ordered to match! */
@ -683,7 +684,6 @@ spcdevHierVisit(hc, dev, scale)
/* Drop through to below (no break statement) */
case DEV_RSUBCKT:
case DEV_CSUBCKT:
/* RC-like subcircuits are exactly like other subcircuits */
/* except that the "gate" node is treated as an identifier */
/* only and is not output. */

View File

@ -2320,6 +2320,7 @@ spcdevVisit(dev, hierName, scale, trans)
/* Drop through to below (no break statement) */
case DEV_SUBCKT:
case DEV_CSUBCKT:
/* Subcircuit is "Xnnn gate [source [drain [sub]]]" */
/* Subcircuit .subckt record must be ordered to match! */
@ -2330,7 +2331,6 @@ spcdevVisit(dev, hierName, scale, trans)
/* Drop through to below (no break statement) */
case DEV_RSUBCKT:
case DEV_CSUBCKT:
/* RC-like subcircuits are exactly like other subcircuits */
/* except that the "gate" node is treated as an identifier */
/* only and is not output. */

View File

@ -2181,7 +2181,7 @@ ExtTechLine(sectionName, argc, argv)
case DEV_RSUBCKT:
case DEV_CSUBCKT:
nterm = 2;
nterm = (dv->k_key == DEV_RSUBCKT) ? 2 : 1;
DBTechNoisyNameMask(argv[4], &termtypes[0]); /* terminals */
termtypes[1] = DBZeroTypeBits;