self.source.last_be.eq(self.sink.last_be)
]
fsm.act("COPY",
- Record.connect(self.sink, self.source, leave_out=["data", "last_be"]),
+ Record.connect(self.sink, self.source, leave_out=set(["data", "last_be"])),
self.source.sop.eq(0),
If(self.sink.stb & self.sink.eop & self.source.ack,
self.source.last_be.eq(self.sink.last_be)
]
fsm.act("COPY",
- Record.connect(self.sink, self.source, leave_out=["data", "last_be"]),
+ Record.connect(self.sink, self.source, leave_out=set(["data", "last_be"])),
self.source.sop.eq(sop),
clr_sop.eq(self.source.stb & self.source.ack),
read_status = Status(read)
self.submodules += read_status
self.comb += [
- Record.connect(sink, read, leave_out=["stb", "ack"]),
- Record.connect(sink, write, leave_out=["stb", "ack"]),
+ Record.connect(sink, read, leave_out=set(["stb", "ack"])),
+ Record.connect(sink, write, leave_out=set(["stb", "ack"])),
read.stb.eq(sink.stb & (sink.read | sink.identify) & ~read_stall),
write.stb.eq(sink.stb & sink.write),
If(sink.read | sink.identify,
sink_status = Status(sinks[i])
self.submodules += sink_status
self.comb += [
- Record.connect(sinks[i], reads[i], leave_out=["stb", "ack"]),
- Record.connect(sinks[i], write_striper.sinks[i], leave_out=["stb", "ack"]),
+ Record.connect(sinks[i], reads[i], leave_out=set(["stb", "ack"])),
+ Record.connect(sinks[i], write_striper.sinks[i], leave_out=set(["stb", "ack"])),
reads[i].stb.eq(sinks[i].stb & ctrl.reading),
write_striper.sinks[i].stb.eq(sinks[i].stb & ctrl.writing),
sinks[i].ack.eq(reads[i].ack | write_striper.sinks[i].ack),
# split data and ctrl signals (except stb & ack managed in fsm)
for i, s in enumerate(sources):
- self.comb += Record.connect(sink, s, leave_out=["stb", "ack", "data"])
+ self.comb += Record.connect(sink, s, leave_out=set(["stb", "ack", "data"]))
if mirroring_mode:
self.comb += s.data.eq(sink.data)
else:
)
# use first sink for ctrl signals (except for stb, ack & failed)
- self.comb += Record.connect(sinks[0], source, leave_out=["stb", "ack", "failed", "data"])
+ self.comb += Record.connect(sinks[0], source, leave_out=set(["stb", "ack", "failed", "data"]))
# combine datas
if mirroring_mode:
self.comb += source.data.eq(0) # mirroring only used for writes