Skip to content

Commit

Permalink
frontend/dma: fix level CSRStatus size (+1).
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Apr 24, 2020
1 parent a85b1d7 commit 7818ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litepcie/frontend/dma.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, depth):
CSRField("index", size=16, description= "Index of the last descriptor executed in the DMA descriptor table."),
CSRField("count", size=16, description= "Loops of the DMA descriptor table since started."),
], description="Loop monitoring for software synchronization.")
self.level = CSRStatus(log2_int(depth), description="Number descriptors in the table.")
self.level = CSRStatus(bits_for(depth), description="Number descriptors in the table.")
self.flush = CSRStorage(description="A write to this register flushes the table.")

# # #
Expand Down

0 comments on commit 7818ace

Please sign in to comment.