• 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. Executing sequential commands in Virtuoso

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 8782
  • 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

Executing sequential commands in Virtuoso

DanRitt
DanRitt over 3 years ago

Hello,

I am interested to execute sequential commands to move objects for demonstration purposes. I need to show an object MOVE, wait few seconds and another object MOVE, etc...

I am using ipcBeginProcess(N) + pcWait(cid) commands to create a SLEEP functionality between commands. 

The main goal is to perform the next sequence:

1. Move an object (For Example: A rectangle of M1) to a certain location.

2. Wait 3 seconds

3. Move another object to another location.

4. Wait 3 seconds.

5. Move another object to another location.

.

.

The issue: Currently I am not getting a delay between commands. Instead, Virtuoso waits the entire sum of all delays and then executes all MOVE commands at the same time. There is no delay between move commands.

I tried using sleep(N) function and I am getting the same results. Somehow the delay is executed once and all objects move at the same time after the delay.

Any tips would be greatly appreciated.

Thanks.

Danny

---------------------------------------------------------

Here is the code:

procedure(moveOBJ()
let((mySelSet x cv i cid)

cv=geGetEditCellView()

CCSselectNet("NET1")
mySelSet=geGetSelSet()

printf( "\nMoving NET1\n")

foreach(x mySelSet
dbMoveFig(x cv list(0:0.021 "R0" 1))
)

geDeselectAllObject(cv)

;-----------------------------

; WAIT 3 SECONDS

cid=ipcBeginProcess("sleep 3")
ipcWait(cid)


;-----------------------------

CCSselectNet("NET2")
mySelSet=geGetSelSet()
printf( "\nMoving NET2\n")

foreach(x mySelSet

dbMoveFig(x cv list(0.002:0 "R0" 1))

)

geDeselectAllObject(cv)

;-----------------------------

; WAIT 3 SECONDS

cid=ipcBeginProcess("sleep 3")
ipcWait(cid)

;-----------------------------

CCSselectNet("NET3")
mySelSet=geGetSelSet()
printf( "\nMoving NET3\n")

foreach(x mySelSet

dbMoveFig(x cv list(0:0.007 "R0" 1))

)

geDeselectAllObject(cv)

;-----------------------------


);let
);proc

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Actually it does do the changes each time, but the UI isn't updated because everything is blocking and so you don't see the change.

    You need to call hiUpdate to update the windows. See the code below:

    fig=car(geGetSelSet())
    for(i 1 3
      dbMoveFig(fig fig~>cellView list(3:0 "R0" 1))
      hiUpdate()
    ; might possibly need this too
    ;  hiFlush()
      ipcSleep(2)
    )

    Note too that you can use ipcSleep(n) rather than using ipcBeginProcess.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DanRitt
    DanRitt over 3 years ago in reply to Andrew Beckett

    The solution works.

    Thanks 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