Thursday, November 29, 2007

Display the top-level ports

This is a code to be used in Astro, to get all the top level ports of your design. This code shows the db-foreach loop and the dbFetchObjectField command.

(db-foreach (geGetEditCell) '() "Port" portId
(begin
(display (dbFetchObjectField (geGetEditCell) portId "name"))
(newline)
#t) )

2 comments:

Sini said...

(db-foreach (geGetEditCell) '() "net" portId
(begin
(display (dbFetchObjectField (geGetEditCell) portId "name"))
(newline)
#t) )

Sini said...

hese things work in the FRAM view