예제 #1
0
 def _create_ui_real_sim(self, *args):
     """ Create an instance of the VUnit public interface class """
     return VUnit.from_argv(
         argv=["--output-path=%s" % self._output_path, "--clean"] +
         list(args),
         compile_builtins=False,
     )
예제 #2
0
 def _create_ui(self, *args):
     """ Create an instance of the VUnit public interface class """
     with mock.patch("vunit.ui.SimulatorFactory", new=MockSimulatorFactory):
         ui = VUnit.from_argv(
             argv=["--output-path=%s" % self._output_path, "--clean"] +
             list(args),
             compile_builtins=False)
     return ui
예제 #3
0
def create_vunit(obj, vunit_args, out_basename):
    # fill vunit arguments
    args = []
    # hack for vunit_compile TCL command
    if obj['compile']:
        args += ['--compile']
    args += ['--xunit-xml', '../{}.xml1'.format(out_basename)] + list(vunit_args)
    ui = VUnit.from_argv(args)
    return ui
예제 #4
0
파일: test_ui.py 프로젝트: chiggs/vunit
    def _create_ui(self, *args):
        """ Create an instance of the VUnit public interface class """
        ui = VUnit.from_argv(argv=["--output-path=%s" % self._output_path, "--clean"] + list(args))
        ui.add_library("lib")

        factory = MockSimulatorFactory(self._output_path)
        self.mocksim = factory.mocksim
        ui._simulator_factory = factory  # pylint: disable=protected-access
        return ui
예제 #5
0
파일: test_ui.py 프로젝트: joshrsmith/vunit
    def _create_ui(self, *args):
        """ Create an instance of the VUnit public interface class """
        ui = VUnit.from_argv(
            argv=["--output-path=%s" % self._output_path, "--clean"] +
            list(args),
            compile_builtins=False)

        factory = MockSimulatorFactory(self._output_path)
        self.mocksim = factory.mocksim
        ui._simulator_factory = factory  # pylint: disable=protected-access
        return ui
예제 #6
0
 def _create_ui(self):
     """ Create an instance of the VUnit public interface class """
     ui = VUnit.from_argv(argv=["--output-path=%s" % self._output_path,
                                "--clean"])
     ui.add_library('lib')
     return ui
예제 #7
0
 def test_can_add_non_ascii_encoded_files(self):
     ui = VUnit.from_argv(argv=["--output-path=%s" % self._output_path,
                                "--clean"])
     lib = ui.add_library('lib')
     lib.add_source_files(join(dirname(__file__), 'encoding', 'encoding.vhd'))
     lib.entity("encoding")  # Fill raise exception of not found
예제 #8
0
파일: test_ui.py 프로젝트: ludli505/vunit
 def _create_ui_real_sim(self, *args):
     """ Create an instance of the VUnit public interface class """
     return VUnit.from_argv(argv=["--output-path=%s" % self._output_path,
                                  "--clean"] + list(args),
                            compile_builtins=False)