def test_compile(self):
     cli = CommandLine()
     cli.do_compile('')
Example #2
0
 def test_run_preprocessors(self):
     cli = CommandLine()
     cli.do_run_preprocessors('')
Example #3
0
 def test_show_synthesis_fileset(self):
     cli = CommandLine()
     cli.do_show_synthesis_fileset('')
 def test_run_preprocessors(self):
     cli = CommandLine()
     cli.do_run_preprocessors('')
Example #5
0
 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('')
Example #8
0
 def test_synthesise(self):
     cli = CommandLine()
     cli.do_synthesise('')
Example #9
0
 def test_show_config(self):
     cli = CommandLine()
     cli.do_show_config('')
Example #10
0
 def test_synthesis_fileset(self):
     cli = CommandLine()
     cli.do_load_project(self.project_path)
     cli.do_show_synthesis_fileset('')
Example #11
0
 def test_compile(self):
     cli = CommandLine()
     cli.do_compile('')
Example #12
0
 def test_invalid_project(self):
     """Test the load_project command with an invalid project."""
     cli = CommandLine()
     cli.do_load_project(self.invalid_project_path)
Example #13
0
 def test_missing_project(self):
     """Test the load_project command with an invalid path."""
     cli = CommandLine()
     cli.do_load_project('invalid/project/path')
Example #14
0
 def test_plugins(self):
     cli = CommandLine()
     cli.do_plugins('')
 def test_synthesise(self):
     cli = CommandLine()
     cli.do_synthesise('')
Example #16
0
 def test_add_tests(self):
     cli = CommandLine()
     cli.do_add_tests('')
 def test_show_config(self):
     cli = CommandLine()
     cli.do_show_config('')
Example #18
0
 def test_remove_tests(self):
     cli = CommandLine()
     cli.do_remove_tests('')
 def test_remove_tests(self):
     cli = CommandLine()
     cli.do_remove_tests('')
Example #20
0
 def test_run_tests(self):
     cli = CommandLine()
     cli.do_run_tests('')
 def test_clean(self):
     cli = CommandLine()
     cli.do_clean('')
Example #22
0
 def test_clean(self):
     cli = CommandLine()
     cli.do_clean('')
 def test_show_synthesis_fileset(self):
     cli = CommandLine()
     cli.do_show_synthesis_fileset('')
Example #24
0
# 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'
        )