• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. PSpice to Spectre "translator"

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 126
  • Views 1623
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PSpice to Spectre "translator"

FFerreira
FFerreira over 6 years ago

Hi experts!!!

I have this PSpice code (it's a PWM switch model extracted from Christophe P. Basso book - ISBN: 978-0-07-150859-9) but I don't know how to use it in a virtuoso (Spectre) simulation of a DC-DC converter.

Specifically, I would like to know how to translate it to Spectre (or Spice or whatever...), create a symbol for this code and instantiate it in my testbench.

Thank you all in advance for your help!!!

Fullscreen PWMVM_PSpice.txt Download
*PWM Switch Model (CCM & DCM - Voltage Mode) PSPICE-coded extracted from Christophe P. Basso book (ISBN: 978-0-07-150859-9)

*simulator lang=spice

*
.SUBCKT PWMVM a d p c params: L=75u Fs=100k
*
* Auto toggling between DCM and CCM, voltage-mode
*
Xd d dc limit params: clampH=0.99 clampL=16m
EVcp 6 p value = {(V(dc)/(V(dc)+V(d2)))*V(a,p)}
GIap a p value = {(V(dc)/(V(dc)+V(d2)))*I(VM)}
Ed2 d2X 0 value = {(2*{L}*{Fs}*I(VM)/(V(dc)*V(a,c)+1u))-V(dc)}
Xd2 d2X dc d2 limit2
VM 6 c
*Rtest1 6 61 0.1m 
.ENDS
*
****** Subckts ******
*
.SUBCKT limit d dc params: clampH=0.99 clampL=16m
*
Gd 0 dcx value = {V(d)*100u}
Rdc dcx 0 10k
V1 clpn 0 {clampL}
V2 clpp 0 {clampH}
D1 clpn dcx dclamp
D2 dcx clpp dclamp
Edc dc 0 value = {V(dcx)}
.model dclamp d n=0.01 rs=100m
.ENDS
*
********
*
.SUBCKT limit2 d2nc d d2c
*
Gd 0 d2cx d2nc 0 100u
Rdc d2cx 0 10k
V1 clpn 0 7m
E2 clpp 0 value = {1-V(d)-6.687m}
D1 clpn d2cx dclamp
D2 d2cx clpp dclamp
Edc d2c 0 value = {V(d2cx)}
.model dclamp d n=0.01 rs=100m
.ENDS
*

simulator lang=spectre

  • Cancel
  • mschw
    mschw over 6 years ago

    Hi,

    there are various documents on support.cadence.com which could be of interest for you: Here,  here and here.

    Kind regards,
    Matthias

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • FFerreira
    FFerreira over 6 years ago in reply to mschw

    Hi, Matthias.

    Thank you very very much for your help!

    Best regards,

    Fabricio

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information