Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
67422106
Commit
67422106
authored
5 years ago
by
Florent Kermarrec
Browse files
Options
Download
Email Patches
Plain Diff
sim/core: add Display support
parent
f46f014e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
migen/sim/core.py
migen/sim/core.py
+9
-0
No files found.
migen/sim/core.py
View file @
67422106
...
@@ -229,6 +229,15 @@ class Evaluator:
...
@@ -229,6 +229,15 @@ class Evaluator:
self
.
execute
(
s
.
cases
[
"default"
])
self
.
execute
(
s
.
cases
[
"default"
])
elif
isinstance
(
s
,
collections
.
Iterable
):
elif
isinstance
(
s
,
collections
.
Iterable
):
self
.
execute
(
s
)
self
.
execute
(
s
)
elif
isinstance
(
s
,
Display
):
args
=
[]
for
arg
in
s
.
args
:
assert
isinstance
(
arg
,
_Value
)
try
:
args
.
append
(
self
.
signal_values
[
arg
])
except
:
# not yet evaluated
args
.
append
(
arg
.
reset
.
value
)
print
(
s
.
s
%
(
*
args
,))
else
:
else
:
raise
NotImplementedError
raise
NotImplementedError
...
...
This diff is collapsed.
Click to expand it.
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