Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyrtl/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,6 +1756,8 @@ def render_trace(
is not found in the map, the argument ``repr_func`` will be used instead.
:param segment_size: Traces are broken in the segments of this number of cycles.
"""
if len(self) == 0:
raise PyrtlError("You need to step the simulation at least once to render a trace.")
if repr_per_name is None:
repr_per_name = {}
if _currently_in_jupyter_notebook():
Expand Down
Loading