Search for power signals where there are more device pins than there are bypass capacitors. } $PROGRESS(Checking for power signals where there are more device pins than there are bypass capacitors.) $PERCENTOFF Checking for power signals where there are more IC pins (devices with \&Name.Prefix=U) than there are capacitor pins (other capacitor pin not checked for ground connection). Positive power signals $REPORTOFF $COMBSIGSOFF $COMBDEVSOFF $CLEARERRORS $LINESUSED(32767) $FIND $DEVICES { We must include our extra pins since many of the devices' pwr units use this. } $PINSIGSOURCE &ExtraPins { First clear out the signal attribute that flags the errors } $FIND $SIGNALS &CountWarning $SIGNALS $SETATTR(CountWarning, ) { Find just the positive rails } $FIND $SIGNALS $REGEXP(Plus.*,$SIGNAME) { The $SIGPINFORMAT makes a running total of the device pin count, the capacitor pin count, and the device pin list } $SIGPINFORMAT$SETVAR(ucount, $IF($EQ(&Name.Prefix, U))$PLUS(&ucount, 1)$SETVAR(ulist, &ulist $DEVNAME-$PINNUM)$ELSE&ucount$END)$SETVAR(ccount, $IF($EQ(&Name.Prefix, C))$PLUS(&ccount, 1)$ELSE&ccount$END) { The $SIGNALS command first clears out the device pin count, the capacitor pin count, and the device pin list. Then based on the relationship of the device and capacitor pin counts sets the attribute CountWarning. } $SIGNALS$SETVAR(ulist, )$SETVAR(ucount, 0)$SETVAR(ccount, 0)$PINS$SETATTR(CountWarning, $IF($GE(&ucount,&ccount))Signal $SIGNAME has &ucount device pins (&ulist) and only &ccount capacitors.$END) $REPORTON $FIND $SIGNALS &CountWarning $SIGNALS &CountWarning { Now the Minus voltages } Negitive power signals $REPORTOFF { First clear out the signal attribute that flags the errors } $FIND $SIGNALS &CountWarning $SIGNALS $SETATTR(CountWarning, ) $FIND $SIGNALS $REGEXP(Minus.*,$SIGNAME) $SIGPINFORMAT $SETVAR(ucount, $IF($EQ(&Name.Prefix, U)) $PLUS(&ucount, 1)$SETVAR(ulist, &ulist $DEVNAME-$PINNUM)$ELSE&ucount$END)$SETVAR(ccount, $IF($EQ(&Name.Prefix, C))$PLUS(&ccount, 1)$ELSE&ccount$END) $SIGNALS$SETVAR(ucount, 0)$SETVAR(ccount, 0) $PINS$SETATTR(CountWarning, $IF($GE(&ucount,&ccount))Signal $SIGNAME has &ucount device pins (&ulist) and only &ccount capacitors.$END) $REPORTON $FIND $SIGNALS &CountWarning $SIGNALS &CountWarning