Skip to content

Commit ef416e4

Browse files
committed
docs: correct sim tool doc messages
Remove stale arguments and add missing information. Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
1 parent 784a9c6 commit ef416e4

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/dvsim/sim/tool/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ def get_job_runtime(log_text: Sequence[str]) -> tuple[float, str]:
4444
4545
Args:
4646
log_text: is the job's log file contents as a list of lines.
47-
tool: is the EDA tool used to run the job.
4847
4948
Returns:
5049
a tuple of (runtime, units).
5150
51+
Raises:
52+
RuntimeError: exception if the search pattern is not found.
53+
5254
"""
5355
...
5456

@@ -65,7 +67,7 @@ def get_simulated_time(log_text: Sequence[str]) -> tuple[float, str]:
6567
log_text: is the job's log file contents as a list of lines.
6668
6769
Returns:
68-
the simulated, units as a tuple.
70+
a tuple of (simulated time, units).
6971
7072
Raises:
7173
RuntimeError: exception if the search pattern is not found.

src/dvsim/sim/tool/vcs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,13 @@ def get_job_runtime(log_text: Sequence[str]) -> tuple[float, str]:
6565
6666
Args:
6767
log_text: is the job's log file contents as a list of lines.
68-
tool: is the EDA tool used to run the job.
6968
7069
Returns:
7170
a tuple of (runtime, units).
7271
72+
Raises:
73+
RuntimeError: exception if the search pattern is not found.
74+
7375
"""
7476
pattern = r"^CPU [tT]ime:\s*(\d+\.?\d*?)\s*(seconds|minutes|hours).*$"
7577
for line in reversed(log_text):
@@ -92,7 +94,7 @@ def get_simulated_time(log_text: Sequence[str]) -> tuple[float, str]:
9294
log_text: is the job's log file contents as a list of lines.
9395
9496
Returns:
95-
the simulated, units as a tuple.
97+
a tuple of (simulated time, units).
9698
9799
Raises:
98100
RuntimeError: exception if the search pattern is not found.

src/dvsim/sim/tool/xcelium.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ def get_job_runtime(log_text: Sequence[str]) -> tuple[float, str]:
9393
9494
Args:
9595
log_text: is the job's log file contents as a list of lines.
96-
tool: is the EDA tool used to run the job.
9796
9897
Returns:
9998
a tuple of (runtime, units).
10099
100+
Raises:
101+
RuntimeError: exception if the search pattern is not found.
102+
101103
"""
102104
pattern = r"^TOOL:\s*xrun.*: Exiting on .*\(total:\s*(\d+):(\d+):(\d+)\)\s*$"
103105
for line in reversed(log_text):
@@ -121,7 +123,7 @@ def get_simulated_time(log_text: Sequence[str]) -> tuple[float, str]:
121123
log_text: is the job's log file contents as a list of lines.
122124
123125
Returns:
124-
the simulated, units as a tuple.
126+
a tuple of (simulated time, units).
125127
126128
Raises:
127129
RuntimeError: exception if the search pattern is not found.

0 commit comments

Comments
 (0)