Exemplo n.º 1
0
 def test_compile(self):
     cli = CommandLine()
     cli.do_compile('')
Exemplo n.º 2
0
 def test_run_preprocessors(self):
     cli = CommandLine()
     cli.do_run_preprocessors('')
Exemplo n.º 3
0
 def test_show_synthesis_fileset(self):
     cli = CommandLine()
     cli.do_show_synthesis_fileset('')
Exemplo n.º 4
0
 def test_run_preprocessors(self):
     cli = CommandLine()
     cli.do_run_preprocessors('')
Exemplo n.º 5
0
 def test_simulate(self):
     cli = CommandLine()
     cli.do_simulate('')
Exemplo n.º 6
0
 def test_add_tests(self):
     cli = CommandLine()
     cli.do_add_tests('')
Exemplo n.º 7
0
 def test_run_tests(self):
     cli = CommandLine()
     cli.do_run_tests('')
Exemplo n.º 8
0
 def test_synthesise(self):
     cli = CommandLine()
     cli.do_synthesise('')
Exemplo n.º 9
0
 def test_show_config(self):
     cli = CommandLine()
     cli.do_show_config('')
Exemplo n.º 10
0
 def test_synthesis_fileset(self):
     cli = CommandLine()
     cli.do_load_project(self.project_path)
     cli.do_show_synthesis_fileset('')
Exemplo n.º 11
0
 def test_compile(self):
     cli = CommandLine()
     cli.do_compile('')
Exemplo n.º 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)
Exemplo n.º 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')
Exemplo n.º 14
0
 def test_plugins(self):
     cli = CommandLine()
     cli.do_plugins('')
Exemplo n.º 15
0
 def test_synthesise(self):
     cli = CommandLine()
     cli.do_synthesise('')
Exemplo n.º 16
0
 def test_add_tests(self):
     cli = CommandLine()
     cli.do_add_tests('')
Exemplo n.º 17
0
 def test_show_config(self):
     cli = CommandLine()
     cli.do_show_config('')
Exemplo n.º 18
0
 def test_remove_tests(self):
     cli = CommandLine()
     cli.do_remove_tests('')
Exemplo n.º 19
0
 def test_remove_tests(self):
     cli = CommandLine()
     cli.do_remove_tests('')
Exemplo n.º 20
0
 def test_run_tests(self):
     cli = CommandLine()
     cli.do_run_tests('')
Exemplo n.º 21
0
 def test_clean(self):
     cli = CommandLine()
     cli.do_clean('')
Exemplo n.º 22
0
 def test_clean(self):
     cli = CommandLine()
     cli.do_clean('')
Exemplo n.º 23
0
 def test_show_synthesis_fileset(self):
     cli = CommandLine()
     cli.do_show_synthesis_fileset('')
Exemplo n.º 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'
        )