2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

rtio/analyzer: fix superficial mistakes

This commit is contained in:
Sebastien Bourdeauducq 2015-12-16 17:36:36 +08:00
parent f8eaeaa43f
commit afaad270cc

View File

@ -52,7 +52,7 @@ class ExceptionTypes(AutoCSR):
class MessageEncoder(Module, AutoCSR):
def __init__(self, rtio_core):
self.source = stream.Endpoint("data", 256)
self.source = stream.Endpoint([("data", 256)])
self.message_types = MessageTypes()
self.exception_types = ExceptionTypes()
@ -75,7 +75,7 @@ class MessageEncoder(Module, AutoCSR):
else:
o_address = 0
if hasattr(kcsrs, "i_data"):
i_data = kcsrs.i_data
i_data = kcsrs.i_data.status
else:
i_data = 0
self.comb += [