-
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
Germain Haugou
committed
Oct 11, 2024
1 parent
1b9da15
commit 3b4b15d
Showing
4 changed files
with
64 additions
and
25 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
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 Simulation import QuestaSimulation, VCSSimulation, VerilatorSimulation, BansheeSimulation, GvsocSimulation | ||
|
||
|
||
class Simulator(object): | ||
|
@@ -96,6 +96,23 @@ def get_simulation(self, test): | |
cmd=cmd | ||
) | ||
|
||
class GvsocSimulator(RTLSimulator): | ||
"""Gvsoc simulator | ||
An [RTL simulator][Simulator.RTLSimulator], identified by the name | ||
`vsim`, tailored to the creation of | ||
[Gvsoc simulations][Simulation.GvsocSimulation]. | ||
""" | ||
|
||
def __init__(self, binary): | ||
"""Constructor for the GvsocSimulator class. | ||
Arguments: | ||
binary: The Gvsoc simulation binary. | ||
""" | ||
super().__init__(binary, name='gvsoc', simulation_cls=GvsocSimulation) | ||
|
||
|
||
|
||
class VCSSimulator(RTLSimulator): | ||
"""VCS simulator | ||
|