-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
# | ||
# Luca Colagrande <[email protected]> | ||
|
||
from Simulation import QuestaSimulation, VCSSimulation, VerilatorSimulation, BansheeSimulation | ||
from snitch.util.sim import Simulation | ||
|
||
|
||
class Simulator(object): | ||
|
@@ -111,7 +111,7 @@ def __init__(self, binary): | |
Arguments: | ||
binary: The VCS simulation binary. | ||
""" | ||
super().__init__(binary, name='vcs', simulation_cls=VCSSimulation) | ||
super().__init__(binary, name='vcs', simulation_cls=Simulation.VCSSimulation) | ||
|
||
|
||
class QuestaSimulator(RTLSimulator): | ||
|
@@ -128,7 +128,7 @@ def __init__(self, binary): | |
Arguments: | ||
binary: The QuestaSim simulation binary. | ||
""" | ||
super().__init__(binary, name='vsim', simulation_cls=QuestaSimulation) | ||
super().__init__(binary, name='vsim', simulation_cls=Simulation.QuestaSimulation) | ||
|
||
|
||
class VerilatorSimulator(RTLSimulator): | ||
|
@@ -145,7 +145,7 @@ def __init__(self, binary): | |
Arguments: | ||
binary: The Verilator simulation binary. | ||
""" | ||
super().__init__(binary, name='verilator', simulation_cls=VerilatorSimulation) | ||
super().__init__(binary, name='verilator', simulation_cls=Simulation.VerilatorSimulation) | ||
|
||
|
||
class BansheeSimulator(Simulator): | ||
|
@@ -161,7 +161,7 @@ def __init__(self, cfg): | |
Arguments: | ||
cfg: A Banshee config file. | ||
""" | ||
super().__init__(name='banshee', simulation_cls=BansheeSimulation) | ||
super().__init__(name='banshee', simulation_cls=Simulation.BansheeSimulation) | ||
self.cfg = cfg | ||
|
||
def supports(self, test): | ||
|