• 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. PSpice
  3. There are some problems in my .lib file, and I don't know...

Stats

  • State Suggested Answer
  • Replies 2
  • Answers 1
  • Subscribers 28
  • Views 1037
  • Members are here 0
More Content

There are some problems in my .lib file, and I don't know how to solve them.

JQ202504092110
JQ202504092110 5 months ago

The following is my lib file device code, and I made some mistakes when I simulated it.

.SUBCKT MEMRISTOR1 Plus Minus PARAMS: Roff=16k Ron=100 D=10n uv=1e-14 p=10
Cx x 0 1p IC=0.314
E_stp stp 0 VALUE { IF(TIME >= 0, 1, 0) }
E_arg arg 0 VALUE { 0.9*(V(x)-V(stp))**2 + 0.1 }
E_f f 0 VALUE { 1 - (V(arg)**10) }
Gdx 0 x VALUE { V(Plus,Minus)/(Roff - V(x)*(Roff-Ron)) * V(f) * 1e6 }
Rmem Plus Minus R={Roff - V(x)*(Roff-Ron)}
.ENDS MEMRISTOR1

This is an error in my simulation.

  • Sign in to reply
  • Cancel
Parents
  • HIMS
    0 HIMS 4 months ago

    For the line

    Rmem Plus Minus R={Roff - V(x)*(Roff-Ron)}

    Giving R={expression} makes it a model definition and will require a .model/.subckt definition for 'Rmem'.


    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • HIMS
    0 HIMS 4 months ago

    For the line

    Rmem Plus Minus R={Roff - V(x)*(Roff-Ron)}

    Giving R={expression} makes it a model definition and will require a .model/.subckt definition for 'Rmem'.


    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
Cadence Guidelines

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