def test_compile(self): cli = CommandLine() cli.do_compile('')
def test_run_preprocessors(self): cli = CommandLine() cli.do_run_preprocessors('')
def test_show_synthesis_fileset(self): cli = CommandLine() cli.do_show_synthesis_fileset('')
def test_simulate(self): cli = CommandLine() cli.do_simulate('')
def test_add_tests(self): cli = CommandLine() cli.do_add_tests('')
def test_run_tests(self): cli = CommandLine() cli.do_run_tests('')
def test_synthesise(self): cli = CommandLine() cli.do_synthesise('')
def test_show_config(self): cli = CommandLine() cli.do_show_config('')
def test_synthesis_fileset(self): cli = CommandLine() cli.do_load_project(self.project_path) cli.do_show_synthesis_fileset('')
def test_invalid_project(self): """Test the load_project command with an invalid project.""" cli = CommandLine() cli.do_load_project(self.invalid_project_path)
def test_missing_project(self): """Test the load_project command with an invalid path.""" cli = CommandLine() cli.do_load_project('invalid/project/path')
def test_plugins(self): cli = CommandLine() cli.do_plugins('')
def test_remove_tests(self): cli = CommandLine() cli.do_remove_tests('')
def test_clean(self): cli = CommandLine() cli.do_clean('')
# to 'False', this tells the synthesis tool not to try to synthesise this file. # If not specified, 'synthesise' will default to 'True' project.add_file( 'tb_axi_lite_slave_example.v', library='lib_tb_example', synthesise=False ) if __name__ == '__main__': interactive = True # Set True to load the ChipTools CLI if interactive: # ChipTools provides a command line interface to allow you to perform # actions on the project such as synthesis and simulation interactively. # It can be launched by importing the CommandLine from chiptools.core.cli # and executing the cmdloop() method - the project is passed to the # CommandLine constructor. Launch the ChipTools command line with the # project we just configured: from chiptools.core.cli import CommandLine CommandLine(project).cmdloop() else: # Run the automated unit tests on the project: project.run_tests(tool_name='vivado') # Synthesise the project: project.synthesise( library='lib_example', entity='axi_lite_slave_example', tool_name='vivado' )