Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
5f0013d8
Commit
5f0013d8
authored
Jun 26, 2024
by
Hejing Li
Committed by
Jonas Kaufmann
Aug 20, 2024
Browse files
impl.py: add corundum verilator
parent
fec1a467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
experiments/simbricks/splitsim/impl.py
experiments/simbricks/splitsim/impl.py
+17
-0
No files found.
experiments/simbricks/splitsim/impl.py
View file @
5f0013d8
...
@@ -156,6 +156,23 @@ class CorundumBMNICSim(NICSim):
...
@@ -156,6 +156,23 @@ class CorundumBMNICSim(NICSim):
class
CorundumVerilatorNICSim
(
NICSim
):
def
__init__
(
self
,
e
:
exp
.
Experiment
):
super
().
__init__
(
e
)
self
.
clock_freq
=
250
# MHz
def
resreq_mem
(
self
)
->
int
:
# this is a guess
return
512
def
run_cmd
(
self
,
env
:
ExpEnv
)
->
str
:
return
self
.
basic_run_cmd
(
env
,
'/corundum/corundum_verilator'
,
str
(
self
.
clock_freq
)
)
class
HostSim
(
Simulator
):
class
HostSim
(
Simulator
):
def
__init__
(
self
,
e
:
exp
.
Experiment
):
def
__init__
(
self
,
e
:
exp
.
Experiment
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment