説明
有効な値を含む IP 設定テンプレート ディクショナリを取得します。または、フラグが有効な場合、設定階層の完全な構造を取得し、すべての値を 0 または空文字列に設定します。
構文
get_sample_settings(template=False)
戻り値
IP 設定のディクショナリ。
パラメーター
| 名前 | 説明 |
|---|---|
| [template] | 値を 0 または空文字列に設定した完全な設定ディクショナリを返すように有効にします。 デフォルト: False |
例
# Get a ready-to-use sample IP settings dictionary
proj = open_project('my_design.pdm')
handler = proj.get_ip_handler('MRMAC')
settings = handler.get_sample_settings()
# settings == {'activity': 'Typical', 'ports': {'port0': {'data_rate': 50, ...}, ...}, ...}
# Get an empty settings template to understand the full structure
template = handler.get_sample_settings(template=True)
# Use sample settings directly to create an IP
handler.create('mrmac1', handler.get_sample_settings())