天天看點

dc_shell/pt_shell的一些常用指令(current_design/current_instance/get_cells/get_pins/get_ports) 之一1.current_design2.current_instance3.get_cells/get_cell5.get_ports/get_port5.總結

1.current_design

儲存的就是目前設計的top name

dc_shell/pt_shell的一些常用指令(current_design/current_instance/get_cells/get_pins/get_ports) 之一1.current_design2.current_instance3.get_cells/get_cell5.get_ports/get_port5.總結

2.current_instance

https://www.micro-ip.com/STA/dictionary_139_17/current_instance.html

在pt_shell中設定目前的working instance,和linux下的cd 指令相似, 進入某一hier之後 get_cells * 就隻get本層的cells

current_instance . 目前instance

current_instance .. 後退一級

current_instance (不加參數)傳回top hier

current_instance a/b/c 進入a/b/c例化層次

3.get_cells/get_cell

Creates a collection of cells from the current design, relative to the current instance. 和current_instance有關

get_cells * 就是get所有目前instance所有的cells

get_cells -hier * 就是get所有目前instance及以下所有的cells

cells包括 FF,各種組合邏輯cells,latchs

假設某個寄存器的全路徑 A/B/CB/CB/CB/C/*reg/D 也是錯誤的

正确的是:

get_pins A/B/C/*reg/D 在指定的A/B/C hier下get *reg的D pin

get_pins -hier *reg/D 在目前及以下層級get *reg 的D pin

get_pins *reg/D 隻在目前層次get *reg的D pin

5.get_ports/get_port

和get_cells/get_cell的情況一緻

5.總結

get_pins/get_cells/get_ports

不加-hier時 就在指定的hier下有效,目前instance或者全路徑的A/B/C下(就和linux下的find一樣)

加 -hier 就在目前及所有下級instance下有效(get 某個pins/cells不需要加路徑了)