當前位置: 首頁>>代碼示例>>Python>>正文


Python Project.add_config_dict方法代碼示例

本文整理匯總了Python中chiptools.core.project.Project.add_config_dict方法的典型用法代碼示例。如果您正苦於以下問題:Python Project.add_config_dict方法的具體用法?Python Project.add_config_dict怎麽用?Python Project.add_config_dict使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在chiptools.core.project.Project的用法示例。


在下文中一共展示了Project.add_config_dict方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: Project

# 需要導入模塊: from chiptools.core.project import Project [as 別名]
# 或者: from chiptools.core.project.Project import add_config_dict [as 別名]
# Create a new Project
project = Project(root=project_root)

# Configure project, you may wish to edit some of these settings depending
# on which simulation/synthesis tools are installed on your system.
config = {
    'simulation_directory': 'simulation',
    'synthesis_directory': 'synthesis',
    'simulator': 'vivado',
    'synthesiser': 'vivado',
    'part': 'xc7z030sbg485-2',
}
# The Project class provides an add_config or add_config_dict method. We use
# the add_config_dict method here to load the config dictionary, you can set
# individual configuration items using add_config.
project.add_config_dict(**config)

# Some unit tests have been written for the component and stored in
# basic_unit_test.py. The Project class provides an 'add_unittest' method for
# adding unit tests to the project, it expects a path to the unit test file.
project.add_unittest('basic_unit_test.py')

# The constraints are added to the project using the add_constraints method.
# The optional 'flow' argument is used to explicitly identify which synthesis
# flow the constraints are intended for (the default is to infer supported
# flows from the file extension).
# project.add_constraints('axi_lite_slave_example.xdc', flow='vivado')

# Synthesis generics can be assigned via the add_generic command, in this
# example we set the data_Width generic to 32:
project.add_generic('data_width', 32)
開發者ID:kayws426,項目名稱:axi-lite-gen,代碼行數:33,代碼來源:axi_lite_slave_example_project.py


注:本文中的chiptools.core.project.Project.add_config_dict方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。