Skip to content

feat: Add buck converter test and MOSFET channel support#28

Merged
ShiboSoftwareDev merged 1 commit intotscircuit:mainfrom
ShiboSoftwareDev:main
Dec 7, 2025
Merged

feat: Add buck converter test and MOSFET channel support#28
ShiboSoftwareDev merged 1 commit intotscircuit:mainfrom
ShiboSoftwareDev:main

Conversation

@ShiboSoftwareDev
Copy link
Copy Markdown
Contributor

@ShiboSoftwareDev ShiboSoftwareDev commented Dec 7, 2025

This change introduces support for P-channel and N-channel enhancement-mode
MOSFETs and adds a new test case for a buck converter circuit.

• Implemented correct control logic for P-channel and N-channel MOSFETs in
circuitJsonToSpice.ts by modeling them as voltage-controlled switches with
appropriate polarity.
• Introduced a more realistic switch model (ENH_SW) for MOSFETs.
• Added a new test fixture and test file for a buck converter circuit, which
utilizes a P-channel MOSFET, to validate the changes.
• Updated the existing boost converter test snapshot to reflect the new MOSFET
model.

@ShiboSoftwareDev ShiboSoftwareDev changed the title wip feat: Add buck converter test and MOSFET channel support Dec 7, 2025
@ShiboSoftwareDev ShiboSoftwareDev merged commit d98ed6e into tscircuit:main Dec 7, 2025
4 checks passed
@tscircuitbot
Copy link
Copy Markdown
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants