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
2423404b
Commit
2423404b
authored
6 years ago
by
whitequark
Browse files
Options
Download
Email Patches
Plain Diff
fhdl.verilog: fix nondeterminism in _printcomb.
parent
0aa76fa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
migen/fhdl/verilog.py
migen/fhdl/verilog.py
+2
-2
No files found.
migen/fhdl/verilog.py
View file @
2423404b
...
...
@@ -271,11 +271,11 @@ def _printcomb(f, ns,
if
display_run
:
r
+=
"
\t
$display(
\"
Running comb block #"
+
str
(
n
)
+
"
\"
);
\n
"
if
blocking_assign
:
for
t
in
g
[
0
]
:
for
t
in
sorted
(
g
[
0
],
key
=
lambda
x
:
x
.
duid
)
:
r
+=
"
\t
"
+
ns
.
get_name
(
t
)
+
" = "
+
_printexpr
(
ns
,
t
.
reset
)[
0
]
+
";
\n
"
r
+=
_printnode
(
ns
,
_AT_BLOCKING
,
1
,
g
[
1
])
else
:
for
t
in
g
[
0
]
:
for
t
in
sorted
(
g
[
0
],
key
=
lambda
x
:
x
.
duid
)
:
r
+=
"
\t
"
+
ns
.
get_name
(
t
)
+
" <= "
+
_printexpr
(
ns
,
t
.
reset
)[
0
]
+
";
\n
"
r
+=
_printnode
(
ns
,
_AT_NONBLOCKING
,
1
,
g
[
1
])
if
dummy_signal
:
...
...
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