• 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 regarding pop-push of a LIST

Stats

  • Locked Locked
  • Replies 37
  • Subscribers 144
  • Views 26776
  • 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 regarding pop-push of a LIST

Neeraj Vardhan
Neeraj Vardhan over 12 years ago

Hi,

I was trying to save my path coordinates as a list. But when i was trying to print the list of points, got errors "unbound variable-plist" . the code is mentioned below.

 

procedure(nvToGetMyLocation()

let((point plist)

cvw=getCurrentWindow()

point=hiGetPoint(cvw)

plist=append(plist list(point))

print(point)

print(plist)

); let

); procedure_nvToGetMyLocation

 

  • Cancel
Parents
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    I was trying to upload the code from morning, but failed to upload... below is the code i am  working on

    procedure(nvMyDirection()

    let((xy1 xy2 x1 x2 y1 y2)

    i=0

    for(i 1 n

    xy1=nth(i p_list)

    xy2=nth((i+1) p_list)

    x1=xCoord(xy1)

    y1=yCoord(xy1)

    x2=xCoord(xy2)

    y2=yCoord(xy2)

     

    if(x2-x1>0 && y2-y1 == 0 then print("RIGHT"))

    if(x2-x1<0 && y2-y1 == 0 then print("LEFT"))  

    if(y2-y1>0 && x2-x1 == 0 then print("TOP"))

    if(y2-y1>0 && x2-x1 == 0 then print("BOTTOM"))

    print(xy1)

    print(xy2)

    print(x1)

    print(x2)

    ) ; for

    ) ; let

    ) ; procedure_nvMyDirection

     

    procedure(nvGetMyLayer()

    let((layer cur_layer)

    layer=leGetEntryLayer()

    cur_layer=append(cur_layer list(layer))

    ); let

    ); procedure_nvGetMyLayer

     

    procedure(nvGetMyLocation()

    n++

    prog((p_curt p_list)

    cvw=getCurrentWindow()

    p_curt=hiGetPoint(cvw)

    p_list=append(p_list list(p_curt))

    print(p_curt)

    print(p_list)

    ); let

    ); procedure_nvGetMyLocation 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Neeraj Vardhan
    Neeraj Vardhan over 12 years ago

    I was trying to upload the code from morning, but failed to upload... below is the code i am  working on

    procedure(nvMyDirection()

    let((xy1 xy2 x1 x2 y1 y2)

    i=0

    for(i 1 n

    xy1=nth(i p_list)

    xy2=nth((i+1) p_list)

    x1=xCoord(xy1)

    y1=yCoord(xy1)

    x2=xCoord(xy2)

    y2=yCoord(xy2)

     

    if(x2-x1>0 && y2-y1 == 0 then print("RIGHT"))

    if(x2-x1<0 && y2-y1 == 0 then print("LEFT"))  

    if(y2-y1>0 && x2-x1 == 0 then print("TOP"))

    if(y2-y1>0 && x2-x1 == 0 then print("BOTTOM"))

    print(xy1)

    print(xy2)

    print(x1)

    print(x2)

    ) ; for

    ) ; let

    ) ; procedure_nvMyDirection

     

    procedure(nvGetMyLayer()

    let((layer cur_layer)

    layer=leGetEntryLayer()

    cur_layer=append(cur_layer list(layer))

    ); let

    ); procedure_nvGetMyLayer

     

    procedure(nvGetMyLocation()

    n++

    prog((p_curt p_list)

    cvw=getCurrentWindow()

    p_curt=hiGetPoint(cvw)

    p_list=append(p_list list(p_curt))

    print(p_curt)

    print(p_list)

    ); let

    ); procedure_nvGetMyLocation 

    • 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