本文整理汇总了Python中chiptools.core.project.Project类的典型用法代码示例。如果您正苦于以下问题:Python Project类的具体用法?Python Project怎么用?Python Project使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Project类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: testReporter
def testReporter(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
# Check the synthesis reporter
self.assertTrue(
callable(project.get_reporter())
)
示例2: test_reporter
def test_reporter(self):
project = Project()
project.load_project(self.project_path)
# Check the synthesis reporter
self.assertTrue(
callable(project.get_reporter())
)
示例3: testSynthesisDirectory
def testSynthesisDirectory(self):
project = Project()
project.load_project(self.project_path)
abs_path = os.path.join(
os.path.abspath(self.root),
self.synthesis_directory
)
self.assertEqual(project.get_synthesis_directory(), abs_path)
示例4: testSynthesisToolName
def testSynthesisToolName(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
# Check synthesis tool name
self.assertEqual(
self.synthesis_tool_name,
project.get_synthesis_tool_name()
)
示例5: testProjectPart
def testProjectPart(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
# Check project part
self.assertEqual(
self.project_part,
project.get_fpga_part()
)
示例6: testSimulationToolName
def testSimulationToolName(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
# Check simulation tool name
self.assertEqual(
self.simulation_tool_name,
project.get_simulation_tool_name()
)
示例7: testProjectConstraints
def testProjectConstraints(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
# Check the project constraints
self.assertEqual(
self.project_constraints,
[os.path.basename(c.path) for c in project.get_constraints()],
)
示例8: test_project_part
def test_project_part(self):
project = Project()
project.load_project(self.project_path)
# Check project part
self.assertEqual(
self.project_part,
project.get_fpga_part()
)
示例9: testGenerics
def testGenerics(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
# Check the synthesis generics
self.assertDictEqual(
self.project_generics,
project.get_generics(),
)
示例10: test_generics
def test_generics(self):
project = Project()
project.load_project(self.project_path)
# Check the synthesis generics
self.assertDictEqual(
self.project_generics,
project.get_generics(),
)
示例11: test_synthesis_tool_name
def test_synthesis_tool_name(self):
project = Project()
project.load_project(self.project_path)
# Check synthesis tool name
self.assertEqual(
self.synthesis_tool_name,
project.get_synthesis_tool_name()
)
示例12: test_simulation_Tool_name
def test_simulation_Tool_name(self):
project = Project()
project.load_project(self.project_path)
# Check simulation tool name
self.assertEqual(
self.simulation_tool_name,
project.get_simulation_tool_name()
)
示例13: testSimulationDirectory
def testSimulationDirectory(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
abs_path = os.path.join(
os.path.abspath(self.root),
self.simulation_directory
)
self.assertEqual(project.get_simulation_directory(), abs_path)
示例14: testPreprocessor
def testPreprocessor(self):
project = Project()
XmlProjectParser.load_project(self.project_path, project)
files = project.get_files()
preprocessors = list(
filter(
lambda x: os.path.exists(x.preprocessor), files
)
)
self.assertTrue(len(preprocessors) > 0)
project.run_preprocessors()
示例15: test_preprocessor
def test_preprocessor(self):
project = Project()
project.load_project(self.project_path)
files = project.get_files()
preprocessors = list(
filter(
lambda x: os.path.exists(x.preprocessor), files
)
)
self.assertTrue(len(preprocessors) > 0)
self.run_and_check_preprocessors(project)