• 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. How to use vcvs as an OR or AND gate

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 126
  • Views 21115
  • 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

How to use vcvs as an OR or AND gate

sohaiba
sohaiba over 12 years ago

Please can you elaborate how to use the vcvs source as OR or AND gate? How to connect the terminals?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Use vcvsp (not vcvs) from analogLib. That allows you to specify the number of controlling voltages (i.e number of inputs to your logic gate). Then specify the type of source as "and" or "or" or whatever you want. 

    See the attached picture with a schematic (showing the property assistant to see the properties on the vcvsp), and the resulting waveforms.

    Regards,

    Andrew.

    • vcvs.png
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • surreyian
    surreyian over 12 years ago
    I tried to configure a NAND/NOR gate with the example given, but NAND/NOR gates gave the same result as AND/OR gate. Any other setting required?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Yes, it's a bit of an oddity - but one that comes from the same feature in certain other SPICE simulators - they also behave the same way where AND and NAND are equivalent (I just checked). This isn't entirely surprising if you think about it, because there's no information on what the inversion would be...

    To get the inversion, you have to set the "Type of transfer char" to PWL, and then you can specify a PWL mapping of input to output voltage (so for example, in my case if I have 4 inputs in the PWL vector, with inputs 0, 0.2, 1.8, 2 and outputs 2, 1.8, 0.2, 0 - this will achieve the inversion (I had a 2 volt "supply" in my case).

    Regards,

    Andrew.

    • 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