Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. is this
  2. ```python
  3. m.d.comb += next_channel[0].eq(iValid[0])
  4. for i in range(1, port_num):
  5. with m.If((iValid[0:(i - 1)] == 0)):
  6. m.d.comb += next_channel[i].eq(iValid[i])
  7. with m.Else():
  8. m.d.comb += next_channel[i].eq(0) 
  9. ```
  10. correct code for
  11. ```
  12. next_channel[0] = iValid[0]
  13. next_channel[1] = iValid[1] and not iValid[0]
  14. next_channel[2] = iValid[2] and not iValid[1] and not iValid[0]
  15. ...
  16. ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement