rtio/sed: fix seqn_width

This commit is contained in:
Sebastien Bourdeauducq 2017-09-16 10:52:37 +08:00
parent 064503f224
commit f39ee7ad62
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ def fifo_payload(channels):
return layout return layout
def seqn_width(lane_count, fifo_width): def seqn_width(lane_count, fifo_depth):
# There must be a unique sequence number for every possible event in every FIFO. # There must be a unique sequence number for every possible event in every FIFO.
# Plus 2 bits to detect and handle wraparounds. # Plus 2 bits to detect and handle wraparounds.
return bits_for(lane_count*fifo_size-1) + 2 return bits_for(lane_count*fifo_depth-1) + 2
def fifo_ingress(seqn_width, layout_payload): def fifo_ingress(seqn_width, layout_payload):