0% found this document useful (0 votes)
759 views1 page

Enc Script

The document describes a procedure that finds the memory locations of black box memory cells in a design and writes their names, x locations, y locations, and orientations to a file. It iterates through each memory cell instance, gets its name, location and orientation from the database, and writes a place and fix command for it to the output file. The file is then closed.

Uploaded by

pdnoob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
759 views1 page

Enc Script

The document describes a procedure that finds the memory locations of black box memory cells in a design and writes their names, x locations, y locations, and orientations to a file. It iterates through each memory cell instance, gets its name, location and orientation from the database, and writes a place and fix command for it to the output file. The file is then closed.

Uploaded by

pdnoob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

## memory location

18 proc mem_pl_fnd { {filename memory_plc_lst.tcl} } {


19 set f [open $filename w]
20 foreach_in_collection tril [get_cells * -filter "ref_lib_cell_name =~ *mem
* && @is_black_box==true"] {
21
set mem_name [get_object_name $tril]
22
set x_loc [lindex [dbInstLoc [dbGetInstByName $mem_name]] 0]
23
set y_loc [lindex [dbInstLoc [dbGetInstByName $mem_name]] 1]
24
set ornt [string map {dbc ""} "[dbInstOrient [dbGetInstByName $mem_name]
]"]
25
puts $f "dbPlaceInst \[dbGetInstByName $mem_name\] ${x_loc} ${y_loc} ${o
rnt}"
26
puts $f "dbSetInstPlacementStatus \[dbGetInstByName $mem_name\] dbcFixed
"
27 }
28 close $f
29 }
30
31

You might also like