Verilog 입장
port(=clock), pin, net, cell이 있음.
Schematic 입장
port, clock, cell, net, design, pin이 있음.
→ 현재 디자인에 따라 Port가 Pin이 될 수도 있음
get_* Commandsget_nets : current design의 net들. -hier로 sub-block도 가능get_pins <cell/pin> : cell들의 input/output pins. -hier로 sub-block 가능get_ports : current design의 input/output/bidir ports. -hier 가능get_cells : cells(instances) in the current design. -hier 로 sub-blocks도 가능get_clocks : current design이나 above design에서 정의된 clock objectget_designs : DC memory에 있는 designsget_libs : DC memory에 있는 librariesget_lib_cells <libname/cellname> : library 안에 있는 cell들get_lib_pins <libname/cellname/pinname> : library 안에 있는 cell의 pin들all_* Commandsarguments 없음
all_inputs : current design의 모든 input, inout portsall_outputs : current design의 모든 output, inout portsall_clocks : current design과 below에서 정의된 clock들all_registers : 현재 디자인의 register cell들의 hierarchyall_ideal_netsall_faninall_fanoutall_connectedall_dont_touchall_high_fanoutquery_objects : 정보 보기sizeof_collection : 개수filter_collection [get_cells *] "ref_name =~ AN*" : 해당 조건에 만족하는 것들만get_cells * -filter "dont_touch == true : 해당 조건에 만족하는 것들만list_attributes -application -class <object_type> : attribute 확인모르겠는거 man으로 찾아보기
set_driving_cell 5 [remove_from_collection [all_inputs] [get_ports CLK]]
set fastclks [get_clocks * -filter "period < 10"]
get_cells -hier -filter "is_unmapped != true"
foreach_in_collection cell [get_cells -hier * -filter "is_heirarchical == true"] {echo "Instance [get_object_name $cell] is hierarchical"}
Object 종류
design, port, pin, cell, net, clock, lib, reference, cluster, bag
direction, driving_cell_rise, load, max_capacitance, ...dont_touch, is_hierarchical, is_mapped, is_sequential, ...collection을 반환하는 commands들은 list용 명령어 안됨
add_to_collection : Add object(s)compare_collections : compares two collectionscopy_collection : Make a copy of collectionfilter_collection : Filter a collection, resulting in a new collectionforeach_in_collection : Iterate over a collectionindex_collection : Extract object from collectionremove_from_collection : Remove object(s) from a collectionsizeof_collection : Number of objects in a collectionsort_collection : Create a sorted copy of a collection