forked from M-Labs/artiq
1
0
Fork 0

drtio: typo

This commit is contained in:
Sebastien Bourdeauducq 2016-11-28 14:34:58 +08:00
parent c419c422fa
commit 4e1b497742
1 changed files with 1 additions and 1 deletions

View File

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