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
756f34d9
Commit
756f34d9
authored
Jul 11, 2023
by
Jonas Kaufmann
Committed by
Antoine Kaufmann
Sep 04, 2023
Browse files
simulators.py: add doc strings for latency and sync period in common simulators
parent
2aa8a262
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
experiments/simbricks/orchestration/simulators.py
experiments/simbricks/orchestration/simulators.py
+10
-0
No files found.
experiments/simbricks/orchestration/simulators.py
View file @
756f34d9
...
...
@@ -89,7 +89,11 @@ class PCIDevSim(Simulator):
self
.
sync_mode
=
0
self
.
start_tick
=
0
self
.
sync_period
=
500
"""Period in nanoseconds of sending synchronization messages from this
device to connected components."""
self
.
pci_latency
=
500
"""Latency in nanoseconds for sending messages to components connected
via PCI."""
def
full_name
(
self
):
return
'dev.'
+
self
.
name
...
...
@@ -273,8 +277,14 @@ class HostSim(Simulator):
self
.
sync_mode
=
0
self
.
sync_period
=
500
"""Period in nanoseconds of sending synchronization messages from this
device to connected components."""
self
.
pci_latency
=
500
"""Latency in nanoseconds for sending messages to components connected
via PCIe."""
self
.
mem_latency
=
500
"""Latency in nanoseconds for sending messages to components connected
via Ethernet."""
self
.
pcidevs
:
tp
.
List
[
PCIDevSim
]
=
[]
self
.
net_directs
:
tp
.
List
[
NetSim
]
=
[]
...
...
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