from fusesoc.simulator.icarus import SimulatorIcarus
from fusesoc.simulator.modelsim import Modelsim
from fusesoc.simulator.verilator import Verilator
from fusesoc.simulator.isim import Isim
from fusesoc.simulator.xsim import Xsim


def SimulatorFactory(sim, system):
    if sim == 'icarus':
        return SimulatorIcarus(system)
    elif sim == 'modelsim':
        return Modelsim(system)
    elif sim == 'verilator':
        return Verilator(system)
    elif sim == 'isim':
        return Isim(system)
    elif sim == 'xsim':
        return Xsim(system)
    else:
        raise RuntimeError("Unknown simulator '" + sim + "'")

0e8af90398dd987c2b207734663ee0868edd8767
<mask token>

<mask token>


def SimulatorFactory(sim, system):
    if sim == 'icarus':
        return SimulatorIcarus(system)
    elif sim == 'modelsim':
        return Modelsim(system)
    elif sim == 'verilator':
        return Verilator(system)
    elif sim == 'isim':
        return Isim(system)
    elif sim == 'xsim':
        return Xsim(system)
    else:
        raise RuntimeError("Unknown simulator '" + sim + "'")

from fusesoc.simulator.icarus import SimulatorIcarus
from fusesoc.simulator.modelsim import Modelsim
from fusesoc.simulator.verilator import Verilator
from fusesoc.simulator.isim import Isim
from fusesoc.simulator.xsim import Xsim


def SimulatorFactory(sim, system):
    if sim == 'icarus':
        return SimulatorIcarus(system)
    elif sim == 'modelsim':
        return Modelsim(system)
    elif sim == 'verilator':
        return Verilator(system)
    elif sim == 'isim':
        return Isim(system)
    elif sim == 'xsim':
        return Xsim(system)
    else:
        raise RuntimeError("Unknown simulator '" + sim + "'")
