Claude-skill-registry logicic

Use when working with 74xx and CD4xxx series logic ICs - standard TTL/CMOS logic gates, flip-flops, counters, decoders, multiplexers. Includes technology families (LS, HC, HCT, AC, AHC) and LogicICHandler guidance.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/logicic" ~/.claude/skills/majiayu000-claude-skill-registry-logicic && rm -rf "$T"
manifest: skills/data/logicic/SKILL.md
source content

Logic IC Manufacturer Skill

Overview

Logic ICs are standardized digital integrated circuits implementing basic logic functions. The two main families are:

  1. 74xx Series - TTL-based logic (originally Texas Instruments, now multi-source)
  2. CD4xxx Series - CMOS-based logic (originally RCA, now multi-source)

These parts are produced by multiple manufacturers (TI, ON Semi, Nexperia, Diodes Inc, STMicroelectronics) with identical pinouts and functions.


MPN Structure

74xx Series

[PREFIX][FAMILY][SERIES][FUNCTION][PACKAGE]
   |       |       |        |         |
   |       |       |        |         +-- Package code (N, D, PW, etc.)
   |       |       |        +-- Function number (00, 04, 74, 138, etc.)
   |       |       +-- Fixed: "74" (commercial) or "54" (military temp)
   |       +-- Technology family (LS, HC, HCT, AC, AHC, etc.)
   +-- Optional manufacturer prefix (SN for TI)

Example Decoding

SN74HC595N
|  |  |  ||
|  |  |  |+-- N = DIP package
|  |  |  +-- 595 = 8-bit shift register function
|  |  +-- 74 = Commercial temperature range
|  +-- HC = High-speed CMOS family
+-- SN = Texas Instruments prefix

74LS04D
  |  ||
  |  |+-- D = SOIC package
  |  +-- 04 = Hex inverter function
  +-- LS = Low-power Schottky TTL family

CD4xxx Series

CD[FUNCTION][PACKAGE]
|     |         |
|     |         +-- Package suffix (BE, BM, UBE, etc.)
|     +-- Function number (4001, 4017, 4051, etc.)
+-- CD = CMOS Digital prefix

Example Decoding

CD4017BE
|  |   ||
|  |   |+-- E = Economy grade
|  |   +-- B = Buffered output
|  +-- 4017 = Decade counter/divider function
+-- CD = CMOS Digital prefix

CD4001UBE
|  |   |||
|  |   ||+-- E = Economy grade
|  |   |+-- B = Buffered
|  |   +-- U = Unbuffered variant
|  +-- 4001 = Quad 2-input NOR gate
+-- CD = CMOS Digital prefix

Technology Families (74xx Series)

Original TTL Technologies

FamilyNameSpeedPowerSupplyNotes
(none)Standard TTLSlowHigh5VOriginal, obsolete
LLow-power TTLSlowLow5VObsolete
SSchottky TTLFastHigh5VObsolete
LSLow-power SchottkyFastLow5VStill common
ALSAdvanced LSFasterLower5VImproved LS
FFast TTLVery FastMedium5VHigh-speed apps
ASAdvanced SchottkyVery FastHigh5VMaximum speed

CMOS Technologies (Modern)

FamilyNameSpeedPowerSupplyNotes
CCMOSSlowVery Low3-15VWide voltage range
HCHigh-speed CMOSFastVery Low2-6VMost common today
HCTHC TTL-compatibleFastVery Low4.5-5.5V5V TTL I/O levels
ACAdvanced CMOSVery FastLow2-6VHigh-speed CMOS
ACTAC TTL-compatibleVery FastLow4.5-5.5VFast + TTL levels
AHCAdvanced HCFasterVery Low2-5.5VImproved HC
AHCTAHC TTL-compatibleFasterVery Low4.5-5.5VImproved HCT

Low-Voltage Technologies

FamilyNameSpeedSupplyNotes
LVLow VoltageMedium2-5.5VGeneral low-voltage
LVCLV CMOSFast1.65-5.5VCommon in 3.3V systems
LVTLV TTLFast2.7-3.6V3.3V optimized
ALVCAdvanced LVCVery Fast1.65-3.6VHigh-speed 3.3V
AUCAdvanced ULPFast0.8-2.7VUltra-low voltage
AUPAdvanced ULPMedium0.8-3.6VUltra-low power

Technology Selection Guide

Use CaseRecommended Family
New 5V designHC or HCT
Replacing old TTLHCT (input compatible)
3.3V systemsLVC
Mixed 3.3V/5VLVC (5V tolerant)
Low power batteryAUP, HC
High speedAC, AHC, ALVC
Wide voltage rangeCD4000 series

Function Number Reference

Gates (2-digit)

NumberFunctionGates/Package
00Quad 2-input NAND4
02Quad 2-input NOR4
04Hex inverter6
08Quad 2-input AND4
10Triple 3-input NAND3
11Triple 3-input AND3
20Dual 4-input NAND2
21Dual 4-input AND2
27Triple 3-input NOR3
308-input NAND1
32Quad 2-input OR4
86Quad 2-input XOR4
125Quad bus buffer (tri-state)4
126Quad bus buffer (tri-state)4

Flip-Flops

NumberFunctionFlip-Flops/Package
73Dual J-K flip-flop (clear)2
74Dual D flip-flop (preset/clear)2
75Quad bistable latch4
76Dual J-K flip-flop (preset/clear)2
109Dual J-K flip-flop (positive edge)2
112Dual J-K flip-flop (negative edge)2
174Hex D flip-flop (common clear)6
175Quad D flip-flop (common clear)4
273Octal D flip-flop (common clear)8
374Octal D flip-flop (tri-state)8
574Octal D flip-flop (tri-state, edge)8

Counters

NumberFunction
90Decade counter
934-bit binary counter
160Sync decade counter (async clear)
161Sync 4-bit counter (async clear)
163Sync 4-bit counter (sync clear)
190Sync decade up/down counter
191Sync binary up/down counter
393Dual 4-bit binary counter
4017CD4017 decade counter/divider
4040CD4040 12-bit binary counter

Shift Registers

NumberFunctionBits
1648-bit serial-in parallel-out8
1658-bit parallel-in serial-out8
1668-bit parallel-in serial-out8
5958-bit serial-in parallel-out (latch)8
5978-bit serial-in parallel-out (latch)8
4015CD4015 dual 4-bit shift register2x4
4094CD4094 8-bit shift register8

Decoders/Demultiplexers

NumberFunction
42BCD to decimal decoder
1383-to-8 line decoder
139Dual 2-to-4 line decoder
1544-to-16 line decoder
155Dual 2-to-4 decoder/demux
2383-to-8 line decoder (active high)
4028CD4028 BCD to decimal decoder
4514CD4514 4-to-16 line decoder (latch)

Multiplexers

NumberFunction
1518-to-1 multiplexer
153Dual 4-to-1 multiplexer
157Quad 2-to-1 multiplexer
158Quad 2-to-1 multiplexer (inverted)
2518-to-1 multiplexer (tri-state)
253Dual 4-to-1 multiplexer (tri-state)
257Quad 2-to-1 multiplexer (tri-state)
4051CD4051 8-channel analog mux
4052CD4052 Dual 4-channel analog mux
4053CD4053 Triple 2-channel analog mux

Buffers/Drivers

NumberFunction
07Hex buffer (open-collector)
17Hex buffer (open-collector)
125Quad buffer (tri-state)
126Quad buffer (tri-state)
240Octal buffer (inverting, tri-state)
241Octal buffer (non-inverting, tri-state)
244Octal buffer (non-inverting, tri-state)
245Octal bus transceiver (tri-state)
4049CD4049 Hex inverting buffer
4050CD4050 Hex non-inverting buffer

Package Codes

74xx Series Package Codes

CodePackagePinsNotes
NPDIP14-20Through-hole, prototyping
DSOIC14-20Surface mount, 1.27mm pitch
DWSOIC-Wide16-28Wide body SOIC
PWTSSOP14-24Thin profile, 0.65mm pitch
DBSSOP14-28Shrink SOIC
DBVSOT-235-6Very small, single gate
DGVVSSOP8Mini SOIC
RGYQFN16-24No-lead package
NSSO14-20Small outline
MSOIC14-20Alternative SOIC code
TTSSOP14-24Alternative TSSOP code
PDIP14-20Plastic DIP (alternate)

CD4xxx Series Package Codes

CodePackageNotes
BEPDIPStandard plastic DIP, buffered
BPDIPStandard buffered output
EPDIPEconomy grade
UBEPDIPUnbuffered output
BCCERDIPCeramic DIP (high reliability)
BMSOICSurface mount, buffered
BTTSSOPThin package, buffered
BDSOICAlternative SOIC code
PWRTSSOPTape and reel
NDIPGeneric DIP
PDIPPlastic DIP
NSRSOICSOIC tape and reel

Handler Implementation

Supported Component Types

ComponentType.IC         // Base type
ComponentType.LOGIC_IC   // Specific logic IC type

Pattern Recognition

// 74xx series pattern (includes 54xx military)
"^(?:74|54)[LSAHCTTF]{0,4}[0-9]{2,4}.*"

// CD4xxx series pattern
"^CD4[0-9]{3}.*"

Series Extraction Rules

The handler extracts the base series by:

  1. 74xx: Extracts digits after technology code until non-digit

    • SN74HC595N
      ->
      595
    • 74LS04D
      ->
      04
  2. CD4xxx: Extracts

    CD4
    + 3-digit function

    • CD4017BE
      ->
      CD4017
    • CD4001UBE
      ->
      CD4001

Package Code Extraction Rules

CD4xxx:

  • Check longest suffixes first:
    UBE
    ,
    BE
    ,
    BC
  • Then shorter:
    B
    ,
    E

74xx:

  • Single letter suffix:
    N
    ,
    D
    ,
    P
    ,
    M
    ,
    T
  • Pattern:
    .*?([NDPMT])$

Similarity Calculation

The

LogicICSimilarityCalculator
uses these rules:

Same Function, Compatible Technology = HIGH (0.9)

// These are highly similar (same function)
"74LS00" vs "74HC00"    // 0.9 - Same NAND function
"74LS04" vs "74ALS04"   // 0.9 - Same inverter function
"CD4001BE" vs "CD4001BM" // 0.9 - Same NOR gate, different package

Different Functions = LOW (0.3)

// These have low similarity (different functions)
"74LS00" vs "74LS04"    // 0.3 - NAND vs Inverter
"74HC595" vs "74HC138"  // 0.3 - Shift register vs Decoder
"CD4017" vs "CD4001"    // 0.3 - Counter vs NOR gate

Compatible Technology Groups

These 74xx families are considered compatible:

  • LS
    ,
    ALS
    ,
    F
    ,
    HC
    ,
    HCT

Parts with the same function and compatible families score HIGH similarity.

Function Groups

Parts in the same function group may have increased similarity:

GroupFunction Numbers
NAND00, 10, 20, 30, 40
NOR02, 12, 22, 32, 42
NOT04, 14, 24, 34, 44
AND08, 18, 28, 38, 48
OR32, 42
Flip-Flops73, 74, 75, 76, 77, 78
Multiplexers151, 153, 157, 158
Decoders138, 139, 154, 155

Example MPNs

Texas Instruments (SN prefix)

MPNDescription
SN74HC595N8-bit shift register, HC CMOS, DIP
SN74LS04DHex inverter, LS TTL, SOIC
SN74AHC1G04DCKRSingle inverter, AHC, SC70, tape/reel
SN74LVC245APWOctal bus transceiver, LVC, TSSOP
SN74HC138D3-to-8 decoder, HC CMOS, SOIC

Nexperia (74 prefix without SN)

MPNDescription
74HC595D8-bit shift register, HC, SOIC
74LVC1G04GWSingle inverter, LVC, SC70
74AHCT125DQuad buffer, AHCT, SOIC
74HCT245DOctal bus transceiver, HCT, SOIC

ON Semiconductor (MC74 prefix)

MPNDescription
MC74HC595ADG8-bit shift register, HC, SOIC
MC74AC04DGHex inverter, AC, SOIC
MC74VHC1GT04DTT1GSingle inverter, VHC, SC70

CD4000 Series (Multi-source)

MPNDescription
CD4001BEQuad 2-input NOR, buffered, DIP
CD4017BMDecade counter, buffered, SOIC
CD4051BE8-channel mux, buffered, DIP
CD4066BMQuad bilateral switch, buffered, SOIC
CD4093BEQuad Schmitt NAND, buffered, DIP

Multi-Sourcing Guide

Logic ICs are second-sourced by many manufacturers. These are direct replacements:

FunctionTINexperiaON SemiSTMicro
74HC595SN74HC59574HC595MC74HC595AM74HC595
74LS04SN74LS0474LS04MC74LS04A-
74HC138SN74HC13874HC138MC74HC138AM74HC138
CD4001CD4001BHEF4001BMC14001BHCF4001
CD4017CD4017BHEF4017BMC14017BHCF4017

Note: Nexperia uses

HEF
prefix for CD4000 series (e.g.,
HEF4001BT
). STMicro uses
HCF
prefix (e.g.,
HCF4017BE
). ON Semiconductor uses
MC14
prefix (e.g.,
MC14001BCP
).


Related Files

  • Handler:
    manufacturers/LogicICHandler.java
  • Similarity Calculator:
    componentsimilaritycalculators/LogicICSimilarityCalculator.java
  • Component Types:
    ComponentType.LOGIC_IC
    ,
    ComponentType.LOGIC_IC_NEXPERIA
    ,
    ComponentType.LOGIC_IC_DIODES
  • Similarity Skill:
    .claude/skills/similarity-logic/SKILL.md

Learnings & Quirks

Handler Patterns

  • Pattern uses character class:
    [LSAHCTTF]{0,4}
    captures technology but has duplicates (TT). Works but could be cleaner.
  • 54xx military parts: Pattern includes 54xx prefix for military temperature range variants. Same function as 74xx.
  • No manufacturer prefix required: Pattern matches both
    SN74HC595
    (TI) and
    74HC595
    (generic).

Series Extraction Gotcha

  • The
    extractSeries()
    method uses regex
    replaceAll("([0-9]{2,4}).*$", "$1")
    which captures the function number.
  • For
    74LS04D
    , this extracts
    04
    (correct).
  • For
    74HC595N
    , this extracts
    595
    (correct).
  • Note: Technology prefix (LS, HC) is NOT included in extracted series.

Package Code Order Matters

// CORRECT - Check longer suffixes first
if (mpn.endsWith("UBE")) return "UBE";  // 3 chars first
if (mpn.endsWith("BE")) return "BE";    // 2 chars second
if (mpn.endsWith("B")) return "B";      // 1 char last

// WRONG - Would never match UBE or BE
if (mpn.endsWith("E")) return "E";      // Matches first!

CD4000 Buffered vs Unbuffered

  • B suffix: Buffered output (higher drive, lower speed)
  • UB suffix: Unbuffered output (faster, lower drive)
  • Most modern designs use buffered versions.

74xx vs CD4000 Comparison

Aspect74xx (CMOS)CD4000
Supply Voltage2-6V (HC)3-15V
SpeedFasterSlower
PowerLowVery Low
Output DriveHigherLower
ESD ToleranceLowerHigher
Noise ImmunityGoodExcellent

Technology Selection for Mixed Voltage

Source LogicTarget LogicUse Family
5V TTL3.3V CMOSLVC (5V tolerant inputs)
3.3V CMOS5V TTLHCT (TTL output levels)
3.3V to 5V bidirectional-74LVC245 (transceiver)

Debug Statements in Calculator

The

LogicICSimilarityCalculator
contains
System.out.println
debug statements (lines 43, 47, 51, 59, 67, 78, 92, 113-123). These should be removed or replaced with SLF4J logging in production.

Cross-Handler Considerations

  • LogicICHandler handles generic logic ICs (74xx, CD4xxx).
  • Manufacturer-specific handlers (TI, Nexperia, etc.) may also match these parts.
  • Handler ordering in
    ManufacturerHandlerFactory
    affects which handler processes the part first.
<!-- Add new learnings above this line -->