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
165bdb15
"git@developer.sourcefind.cn:cnjsdfcy/simbricks.git" did not exist on "302ec0566649cfbb910109a7bc32961f573ef3e0"
Commit
165bdb15
authored
Dec 01, 2020
by
Jialin Li
Browse files
experiments: add sync_mode option to gem5 hosts
parent
7c84ddb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
experiments/modes/simulators.py
experiments/modes/simulators.py
+2
-0
No files found.
experiments/modes/simulators.py
View file @
165bdb15
...
@@ -22,6 +22,7 @@ class HostSim(Simulator):
...
@@ -22,6 +22,7 @@ class HostSim(Simulator):
sleep
=
0
sleep
=
0
cpu_freq
=
'3GHz'
cpu_freq
=
'3GHz'
sync_mode
=
0
sync_period
=
500
sync_period
=
500
pci_latency
=
500
pci_latency
=
500
...
@@ -181,6 +182,7 @@ class Gem5Host(HostSim):
...
@@ -181,6 +182,7 @@ class Gem5Host(HostSim):
cmd
+=
f
'--cosim-shm=
{
env
.
nic_shm_path
(
nic
)
}
'
cmd
+=
f
'--cosim-shm=
{
env
.
nic_shm_path
(
nic
)
}
'
if
cpu_type
==
'TimingSimpleCPU'
:
if
cpu_type
==
'TimingSimpleCPU'
:
cmd
+=
'--cosim-sync '
cmd
+=
'--cosim-sync '
cmd
+=
f
'--cosim-sync_mode=
{
self
.
sync_mode
}
'
cmd
+=
f
'--cosim-pci-lat=
{
self
.
pci_latency
}
'
cmd
+=
f
'--cosim-pci-lat=
{
self
.
pci_latency
}
'
cmd
+=
f
'--cosim-sync-int=
{
self
.
sync_period
}
'
cmd
+=
f
'--cosim-sync-int=
{
self
.
sync_period
}
'
if
isinstance
(
nic
,
I40eNIC
):
if
isinstance
(
nic
,
I40eNIC
):
...
...
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