# DC script - Need to port block level script to top level

Status
Not open for further replies.

#### gurucharapathy

##### Newbie level 5
Hi,
I have block level dc constraints. I need to port them to top level. Can anybody let me know if I can use some kind of wildcards to do that ?
Ex:
Block level constraint : [get_pins clka]
Right now I am doing top level constraint by replacing this with the following
/top/blocka/clka
Is there any wildcard that I can directly add to block level constraint to port it easily like this [get_pins *clka] ?
Guru.

#### yx.yang

##### Full Member level 4
Hi,
I have block level dc constraints. I need to port them to top level. Can anybody let me know if I can use some kind of wildcards to do that ?
Ex:
Block level constraint : [get_pins clka]
Right now I am doing top level constraint by replacing this with the following
/top/blocka/clka
Is there any wildcard that I can directly add to block level constraint to port it easily like this [get_pins *clka] ?
Guru.

Hi, gurucharapathy:
There are usually two difference:
1): hierarchy name different, as you mentioned.
2): IO port name different.
For 1), you can set some variables in your tcl script as the hierarchy name. Then at top level, you just need change the variable value is ok. Such as:
set hir_nam "blocka"; get_pins $hir_name/clka Then at top level: set hir_name "/top/blocka"; get_pins$hir_name/clka.

For 2): I really don't know what to do.

Status
Not open for further replies.