インテル® Quartus® Prime プロ・エディション ユーザーガイド: スクリプティング

ID 683432
日付 9/24/2018
Public
ドキュメント目次

1.10.3.2. get_collection_sizeコマンド

コレクション内のエレメントの数を取得するには、 get_collection_sizeコマンドを使用します。次の例では、開いているプロジェクト内のグローバル・アサインメントの数が出力されます。

get_collection_sizeの例

set all_global_assignments [get_all_global_assignments -name *]
set num_global_assignments [get_collection_size $all_global_assignments]
puts "There are $num_global_assignments global assignments in your project"