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
e6ff283a
Commit
e6ff283a
authored
5 years ago
by
Florent Kermarrec
Browse files
Options
Download
Email Patches
Plain Diff
examples/sim: add display example
parent
67422106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
examples/sim/display.py
examples/sim/display.py
+17
-0
No files found.
examples/sim/display.py
0 → 100644
View file @
e6ff283a
from
migen
import
*
class
DisplayTest
(
Module
):
def
__init__
(
self
):
count
=
Signal
(
8
)
self
.
sync
+=
count
.
eq
(
count
+
1
)
self
.
sync
+=
Display
(
"Count: 0x%02x"
,
count
)
def
generator
(
dut
):
for
i
in
range
(
32
):
yield
if
__name__
==
"__main__"
:
dut
=
DisplayTest
()
run_simulation
(
dut
,
generator
(
dut
))
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