2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

drtio: typo

This commit is contained in:
Sebastien Bourdeauducq 2016-11-28 14:34:58 +08:00
parent c419c422fa
commit 4e1b497742

View File

@ -134,7 +134,7 @@ class CRIDecoder(Module):
# master -> slave
for n, slave in enumerate(slaves):
for name, size, direction in _layout:
for name, size, direction in layout:
if direction == DIR_M_TO_S and name != "cmd":
self.comb += getattr(slave, name).eq(getattr(master, name))
self.comb += If(selected == n, slave.cmd.eq(master.cmd))