Skip to content

Commit

Permalink
[fix] Fix combinational loops in VectorAdder and VectorMul
Browse files Browse the repository at this point in the history
  • Loading branch information
tancheng committed Feb 4, 2025
1 parent b1f76d1 commit 15a155f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fu/vector/VectorAdderRTL.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def comb_logic():
s.recv_opt.rdy @= 0

s.carry_in_temp[0] @= s.carry_in
if s.recv_opt.val & s.send_out[0].rdy:
if s.recv_opt.val:
if s.recv_opt.msg.fu_in[0] != FuInType(0):
s.in0 @= s.recv_opt.msg.fu_in[0] - FuInType(1)
if s.recv_opt.msg.fu_in[1] != FuInType(0):
Expand Down
2 changes: 1 addition & 1 deletion fu/vector/VectorMulRTL.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def comb_logic():
s.recv_const.rdy @= 0
s.recv_opt.rdy @= 0

if s.recv_opt.val & s.send_out[0].rdy:
if s.recv_opt.val:
if s.recv_opt.msg.fu_in[0] != FuInType(0):
s.in0 @= s.recv_opt.msg.fu_in[0] - FuInType(1)
if s.recv_opt.msg.fu_in[1] != FuInType(0):
Expand Down

0 comments on commit 15a155f

Please sign in to comment.