source.eop.eq(1),
source.write.eq(1),
source.last.eq(1),
- source.success.eq(~transport.source.error & ~d2h_error),
source.failed.eq(transport.source.error | d2h_error),
If(source.stb & source.ack,
NextState("IDLE")
source.eop.eq(transport.source.eop),
source.read.eq(~is_identify),
source.identify.eq(is_identify),
- source.success.eq(~transport.source.error),
source.failed.eq(transport.source.error),
source.last.eq(is_identify),
source.data.eq(transport.source.data),
source.eop.eq(1),
source.read.eq(1),
source.last.eq(1),
- source.success.eq(read_done & ~read_error & ~d2h_error),
source.failed.eq(~read_done | read_error | d2h_error),
If(source.stb & source.ack,
NextState("IDLE")
self.done = False
self.write = 0
self.read = 0
- self.success = 0
self.failed = 0
class CommandLogger(PacketLogger):
self.packet = CommandRXPacket()
self.packet.write = selfp.sink.write
self.packet.read = selfp.sink.read
- self.packet.sucess = selfp.sink.success
self.packet.failed = selfp.sink.failed
self.packet.append(selfp.sink.data)
elif selfp.sink.stb:
self.sata.core.command.source.write,
self.sata.core.command.source.read,
self.sata.core.command.source.identify,
- self.sata.core.command.source.success,
self.sata.core.command.source.failed,
self.sata.core.command.source.data,