インテルのみ表示可能 — GUID: gmy1660745447238
Ixiasoft
インテルのみ表示可能 — GUID: gmy1660745447238
Ixiasoft
1.3.3.1. DNI Tclコマンドを使用してのルーチンタスクのスクリプティング
最上位入力ポートの取得 (回路図では強調表示される)
dni::get_ports -filter direction==input

Tclコマンドは、デザイン内の入力ポートのコレクション (PI_1、PI_2、PI_3 など) を返します。返されたコレクションを使用して、他の get_object コマンドに渡したり、チェーンにしたりすることができます。コレクションのメンバーにアクセスするには、コレクション反復子 (foreach_in_collection など) を使用します。次に例を示します。
foreach_in_collection p [dni::get_ports -filter direction=input] { puts $p } port::top::PI_1 port::top::PI_2 port::top::PI_3
inst_1 インスタンスの取得
dni::get_cells inst_1

Tclコマンドは、デザインの inst_1 インスタンスを返します。返されたインスタンスを使用して、他の get_object コマンドに渡したり、チェーンにしたりすることができます。次に例を示します。
foreach_in_collection p [dni::get_ports -filter direction=input] { puts [dni::get_property -name name -object $p] } inst_1
inst_1 インスタンスの in_1 インスタンス・ポートの取得
dni::get_pins -of_objects [dni::get_cells inst_1] -filter name==in_1

Tclコマンドは、デザインの inst_1 インスタンスの in_1 インスタンス・ポートを返します。返されたインスタンス・ポートを使用して、他の get_object コマンドに渡したり、チェーンにしたりすることができます。次に例を示します。
foreach_in_collection p [dni::get_pins -of_objects [dni::get_cells inst_1] -filter name==in_1] { puts $p] } inst_port::top::inst_1|in_1
inst_1|out1 インスタンスのネットの取得
接続のトレース時に、インスタンスに接続されているすべてのネットの走査が必要になる場合があります。このようなシナリオでは、 dni::get_nets コマンドの -of_objects インターフェイスを使用して、インスタンスに接続しているネットを走査します。次に例を示します。
dni::get_nets -of_objects [dni::get_cells inst_1|out_1]

Tclコマンドは、デザインの inst_1|out1 インスタンスのネットを返します。返されたコレクションを使用して、他のコマンドに渡したり、チェーンにしたりすることができます。次に例を示します。
foreach_in_collection p [dni::get_nets -of_objects [dni::get_cells inst_1|out_1] ] { puts $p] } inst_port::top::inst_1|out_1|Net_7 inst_port::top::inst_1|out_1|Net_6 inst_port::top::inst_1|out_1|Net_8
net オブジェクト・タイプで利用可能なプロパティーのリスト
dni::list_properties -type net name parent_name number_of_ports ports net_bus_name source_file source_line is_user_declared