• 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 SKILL
  3. Uniquify Bus List in the Schematic

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 149
  • Views 14269
  • 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

Uniquify Bus List in the Schematic

skillseeker
skillseeker over 13 years ago

 Hello,

I am trying to report the buses in the schematic. When i am reporting them i want to be able to uniquify the buses. For example.

 

If i have TRIM<7:0> Bus split into TRIM<4:0> , TRIM<7:5> i want to report only one bus TRIM<7:0>

   vectorNets = setof(x cvId~>nets x~>numBits > 1) ;

The command is what i am using to get the BUSES in the design but would like to get help to report only one unique bus.

 

Thanks

 

 

  • Cancel
  • dmay
    dmay over 13 years ago

    Here is something to get you started. As it is, it assumes that the bus is consecutive. It uses the minimum and maximum bits to define the range and then always reports them low to high. You will need to adjust it to get what you want, but it gives you one way to look at the problem using the expanded buses as found in the signals list.

     procedure(fullBuses(@optional (cv geGetEditCellView()))
      let((busList)
        busTable = makeTable("busTable" nil)
        foreach(sig cv~>signals
            bus = parseString(sig~>name "<>")
            when(length(bus) > 1
                busTable[car(bus)] = cons(evalstring(cadr(bus)) busTable[car(bus)])
            )
        )
        foreach(busName busTable
            bits = busTable[busName]
            if(length(bits) > 1
                busList = cons(sprintf(nil "%s<%d:%d>" busName apply('min bits) apply('max bits)) busList)
                busList = cons(sprintf(nil "%s<%d>" busName car(bits)) busList)
            )
        )
        busList
      ) ;let
    ) ;proc

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillseeker
    skillseeker over 13 years ago

    Thanks for your help i will try this and let you know how it went...

    Thanks

    • 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