• 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. Help on getting net names and Instance names on a path untill...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 3008
  • 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

Help on getting net names and Instance names on a path untill sequential(DFF) circuit is found.

venuuuuu
venuuuuu over 13 years ago

 Hi all,

        I am trying to write a script for getting instance names and net names on path in digital circuit untill sequential circuit (like DFF) found in schematic. I want to check it hierarchy level also.  For example when I select some net in schematic thenSome file will show: "EN", "AND" , "net2", "OR", "net3","NOT" ,"net3" (net 3 will connect to as D in DFF).

  • Cancel
Parents
  • venuuuuu
    venuuuuu over 13 years ago

     I wrote below code which is not working properly. Actually I planned for top level check only.The hilighted code is for finding output net name of a device because I dont know simple command for getting it. I have problem with order of output nets and devices. And I need hierarchy level also.


    instancesfornet=nil
    outnets=nil
    outnet=nil
    procedure(FPSfindpaths(@optional
    instid outnet
    (visited makeTable('visited nil)) )
    if(outnet==nil
    outnet=car(geGetSelSet())~>net~>name
    )
    mynet = dbFindNetByName(geGetEditCellView() outnet)

    sig =car(mynet~>signals)

    foreach(mInstTrm sig~>memInstTerms
    instancesfornet=cons(car(mInstTrm)~>inst instancesfornet)
    )
    foreach(instid instancesfornet
    unless(visited[instid]
    visited[instid]=t
    i=0
    directions=instid~>instTerms~>direction
    nets=instid~>instTerms~>net~>name
    foreach(output directions
    i++
    v=strcmp(output "output")
    if(v==0 then
    i1=i
    )

    )
    i=1
    foreach(net nets
    if(i1==i then
    outnet=net
    outnets=append(list(outnet instid~>cellName) outnets)
    )
    i++
    )


    outnet=FPSfindpaths(instid outnet visited)
    )
    )

    foreach(name1 outnets
    printf(" %s " name1))
    outnets=nil
    outnet=nil
    instancesfornet=nil
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • venuuuuu
    venuuuuu over 13 years ago

     I wrote below code which is not working properly. Actually I planned for top level check only.The hilighted code is for finding output net name of a device because I dont know simple command for getting it. I have problem with order of output nets and devices. And I need hierarchy level also.


    instancesfornet=nil
    outnets=nil
    outnet=nil
    procedure(FPSfindpaths(@optional
    instid outnet
    (visited makeTable('visited nil)) )
    if(outnet==nil
    outnet=car(geGetSelSet())~>net~>name
    )
    mynet = dbFindNetByName(geGetEditCellView() outnet)

    sig =car(mynet~>signals)

    foreach(mInstTrm sig~>memInstTerms
    instancesfornet=cons(car(mInstTrm)~>inst instancesfornet)
    )
    foreach(instid instancesfornet
    unless(visited[instid]
    visited[instid]=t
    i=0
    directions=instid~>instTerms~>direction
    nets=instid~>instTerms~>net~>name
    foreach(output directions
    i++
    v=strcmp(output "output")
    if(v==0 then
    i1=i
    )

    )
    i=1
    foreach(net nets
    if(i1==i then
    outnet=net
    outnets=append(list(outnet instid~>cellName) outnets)
    )
    i++
    )


    outnet=FPSfindpaths(instid outnet visited)
    )
    )

    foreach(name1 outnets
    printf(" %s " name1))
    outnets=nil
    outnet=nil
    instancesfornet=nil
    )

    • 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