Skip to content

Commit

Permalink
Wishbone DownConverter: Fix sel signal
Browse files Browse the repository at this point in the history
fallen authored and sbourdeauducq committed Nov 26, 2014
1 parent 4542de2 commit ee928a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion migen/bus/wishbone.py
Original file line number Diff line number Diff line change
@@ -154,7 +154,7 @@ def __init__(self, dw_i, dw_o):

# direct connection of wishbone_i --> wishbone_o signals
for name, size, direction in self.wishbone_i.layout:
if direction == DIR_M_TO_S and name not in ["adr", "dat_w"]:
if direction == DIR_M_TO_S and name not in ["adr", "dat_w", "sel"]:
self.comb += getattr(self.wishbone_o, name).eq(getattr(self.wishbone_i, name))

# adaptation of adr & dat signals
@@ -164,6 +164,7 @@ def __init__(self, dw_i, dw_o):
]

self.comb += chooser(dat_w, cnt, self.wishbone_o.dat_w, reverse=True)
self.comb += chooser(self.wishbone_i.sel, cnt, self.wishbone_o.sel, reverse=True)

# fsm
fsm = FSM(reset_state="IDLE")

0 comments on commit ee928a8

Please sign in to comment.