NanDigits中国

位置:文档/GOF API列表

get_instance

Get instance in the top level module

Usage:

my $instance = get_instance($pattern, @options); $pattern: Match pattern, can have wildcard "*", if it is empty, it is treated as "*" @options: -module: module name to have its instance name found $instance: Return the first instance matching

Examples:

#1. The fist hierarchical instance matching 'ui_'. $instance = getinstance("ui");

#2. Find the instance name of module 'enet_control' $instance = get_instance("-module", "enet_control");

更多文档:文档目录


微信公众号

LinkedIn

Nandigits.com 美国官网 | Nandigits.cn 中国官网
© 2021 Nandigits Design Automation. 版权所有。