• 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 can I set bus's direction in spicein?

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 125
  • Views 3641
  • 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 can I set bus's direction in spicein?

gaojun
gaojun over 9 years ago

Hi,

I'm using spicein to import cdl netlist in virtuoso 6.1.6. It work well for non bus type IO. But if the IO pin in subckt definitation is bus type, for example input<2:0>, and whether I use *.pininfo input:i or *.pininfo input<2:0>:i or *.pininfo input<2>:i input<1>:i input<0>:i, the schematic could not give this pin the correct direction. How can I fix it?

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Yes, but you're relying on a side-effect. It's not legal CDL - all that's happening is that SPICE IN is just taking the pin-name as is, and because it's a bus, it then happens to work. I suspect that the *.PININFO doesn't work because this is unexpected syntax and the colon in the middle of the pin name is confusing it (you have a colon in the name, and as the separator for the pin direction).

    The alternative would be to use this CDL syntax:

    .SUBCKT myblock a b c b1<2:0> / d e f1<3:0>

    Everything before the "/" is an output pin; everything after is an input pin. This works - I tested it. You're still relying on a side-effect of incorrect CDL syntax, but it does happen to work. The "/" is part of the CDL definition to separate outputs from inputs, and if my memory is correct, predates the introduction of *.PININFO which came at a later date (although that's been there for more than 20 years, I'm sure).

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Yes, but you're relying on a side-effect. It's not legal CDL - all that's happening is that SPICE IN is just taking the pin-name as is, and because it's a bus, it then happens to work. I suspect that the *.PININFO doesn't work because this is unexpected syntax and the colon in the middle of the pin name is confusing it (you have a colon in the name, and as the separator for the pin direction).

    The alternative would be to use this CDL syntax:

    .SUBCKT myblock a b c b1<2:0> / d e f1<3:0>

    Everything before the "/" is an output pin; everything after is an input pin. This works - I tested it. You're still relying on a side-effect of incorrect CDL syntax, but it does happen to work. The "/" is part of the CDL definition to separate outputs from inputs, and if my memory is correct, predates the introduction of *.PININFO which came at a later date (although that's been there for more than 20 years, I'm sure).

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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