Skip to content

Commit

Permalink
gen/fhdl/verilog: uses blocking affectation for comb always
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Sep 6, 2023
1 parent e1025c6 commit 198acc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litex/gen/fhdl/verilog.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ def _print_combinatorial_logic_synth(f, ns):
else:
r += "always @(*) begin\n"
for t in sorted(g[0], key=lambda x: ns.get_name(x)):
r += _tab + ns.get_name(t) + " <= " + _print_expression(ns, t.reset)[0] + ";\n"
r += _print_node(ns, _AT_NONBLOCKING, 1, g[1])
r += _tab + ns.get_name(t) + " = " + _print_expression(ns, t.reset)[0] + ";\n"
r += _print_node(ns, _AT_BLOCKING, 0, g[1])
r += "end\n"
r += "\n"
return r
Expand Down

0 comments on commit 198acc6

Please sign in to comment.