forked from M-Labs/artiq
rtio/analyzer: fix superficial mistakes
This commit is contained in:
parent
f8eaeaa43f
commit
afaad270cc
|
@ -52,7 +52,7 @@ class ExceptionTypes(AutoCSR):
|
||||||
|
|
||||||
class MessageEncoder(Module, AutoCSR):
|
class MessageEncoder(Module, AutoCSR):
|
||||||
def __init__(self, rtio_core):
|
def __init__(self, rtio_core):
|
||||||
self.source = stream.Endpoint("data", 256)
|
self.source = stream.Endpoint([("data", 256)])
|
||||||
|
|
||||||
self.message_types = MessageTypes()
|
self.message_types = MessageTypes()
|
||||||
self.exception_types = ExceptionTypes()
|
self.exception_types = ExceptionTypes()
|
||||||
|
@ -75,7 +75,7 @@ class MessageEncoder(Module, AutoCSR):
|
||||||
else:
|
else:
|
||||||
o_address = 0
|
o_address = 0
|
||||||
if hasattr(kcsrs, "i_data"):
|
if hasattr(kcsrs, "i_data"):
|
||||||
i_data = kcsrs.i_data
|
i_data = kcsrs.i_data.status
|
||||||
else:
|
else:
|
||||||
i_data = 0
|
i_data = 0
|
||||||
self.comb += [
|
self.comb += [
|
||||||
|
|
Loading…
Reference in New Issue