feat: add PDIP-8, SPDIP-28 aliases and UTDFN-4-EP(1x1) footprint support#649
Open
sagarmaurya64-ai wants to merge 4 commits into
Open
feat: add PDIP-8, SPDIP-28 aliases and UTDFN-4-EP(1x1) footprint support#649sagarmaurya64-ai wants to merge 4 commits into
sagarmaurya64-ai wants to merge 4 commits into
Conversation
Author
…sion - Extended dfn_def schema to accept ep (bool), epw, eph parameters - dfn generator now places an exposed/thermal center pad (pin N+1) when ep=true - Added UTDFN-4-EP(1x1) normalisation in normalizeDefinition() mapping to dfn4_w1.00mm_h1.00mm_p0.65mm_pl0.30mm_pw0.25mm_ep_epw0.50mm_eph0.50mm - Added generic utdfn -> dfn fallback for other UTDFN sizes - Added test cases in tests/dfn.test.ts verifying pad count, EP position, and alias parity Closes tscircuit#183
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #371, #180, #183
Summary
This PR adds support for multiple missing footprint packages:
1. PDIP-8 alias (#371 - $10)
PDIP-<N>as a string alias that normalizes to standarddip<N>PDIP-8→dip82. SPDIP-28 alias (#180 - $10)
SPDIP-<N>as a string alias for Shrink DIP (70 mil / 1.778mm pitch)SPDIP-28→dip28_p1.778mm3. UTDFN-4-EP(1x1) footprint (#183 - $10)
Adds support for the Ultra-Thin Dual Flat No-Lead with Exposed Pad (1×1 mm body) package.
Implementation:
src/fn/dfn.ts— Addedep,epw, andephparameters. Whenep=true, a rectangular exposed thermal pad is placed at center (pinN+1).UTDFN-4-EP(1x1)normalization innormalizeDefinition()mapping to:dfn4_w1.00mm_h1.00mm_p0.65mm_pl0.30mm_pw0.25mm_ep_epw0.50mm_eph0.50mmutdfn<N>aliases also now map todfn<N>.Dimensions (from SGM2036/UTDFN-1×1-4L datasheet):
Tests Added
tests/dip.test.ts— PDIP-8 and SPDIP-28 alias parity teststests/dfn.test.ts— UTDFN-4-EP(1x1) pad count, EP position, and alias parity testsAll local format checks pass cleanly.