Skip to content

Commit

Permalink
Merge pull request #76 from tancheng/resolve_comb_loop_around_fu_xbar
Browse files Browse the repository at this point in the history
[fix] Fix combinational loops in VectorAdder and VectorMul
  • Loading branch information
tancheng authored Feb 4, 2025
2 parents 6f777a9 + 15a155f commit dbe6b94
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 dbe6b94

Please sign in to comment.