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, )
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
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
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
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
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
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
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)