def read_txn(self, addr, ct): hostif = self.hostif buf = yield from par( self.__issue(addr, 0), self.__d_read(ct) ) return buf[1]
def write_txn(self, addr, buf): assert len(buf) > 0 yield from par( self.__issue(addr, 1), self.__d_write(buf) )