Skip to content

Commit

Permalink
analyzer: make byte_count 64-bit
Browse files Browse the repository at this point in the history
sbourdeauducq committed Mar 19, 2016
1 parent 4d22db1 commit 900b0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artiq/gateware/rtio/analyzer.py
Original file line number Diff line number Diff line change
@@ -165,7 +165,7 @@ def __init__(self, membus):
alignment_bits=data_alignment)
self.last_address = CSRStorage(aw + data_alignment,
alignment_bits=data_alignment)
self.byte_count = CSRStatus(32) # only read when shut down
self.byte_count = CSRStatus(64) # only read when shut down

self.sink = stream.Endpoint(
[("data", dw),
@@ -199,7 +199,7 @@ def __init__(self, membus):
)
]

message_count = Signal(32 - log2_int(message_len//8))
message_count = Signal(64 - log2_int(message_len//8))
self.comb += self.byte_count.status.eq(
message_count << log2_int(message_len//8))
self.sync += [

0 comments on commit 900b0cc

Please sign in to comment.