You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to write to a cw305_aes_reg.v style register with CW-Lite and CW305, I'm unable to write more than 47 bytes using the target.fpga_write function below.
In CW305.py
deffpga_write(self, addr, data):
"""Write to an address on the FPGA Args: addr (int): Address to write to data (list): Data to write to addr """iflen(data) <=0:
raiseValueError("Invalid data {}".format(data))
addr=addr<<self.bytecount_sizeifself.platformin ['cw305', 'cw310', 'cw340']:
returnself._naeusb.cmdWriteMem(addr, data)
elif'ss2'inself.platform:
payload=list(int.to_bytes(addr, length=4, byteorder='little'))
payload.extend(data)
self.ss2.send_cmd(cmd=0x23, scmd=0x57, data=payload)
self._ss2_check_status()
which uses the following from naeusb.py
defcmdWriteMem(self, addr : int, data):
""" Send command to write memory over external memory interface to FPGA. Automatically decides to use control-transfer or bulk-endpoint transfer based on data length. """pload=util.get_bytes_memview(data)
iflen(pload) <NAEUSB_CTRL_IO_THRESHOLD:
self._cmd_writemem_ctrl(addr, pload)
else:
self._cmd_writemem_bulk(addr, pload)
naeusb_logger.debug("FPGA_WRITE: bulk: {}, addr: {:08X}, dlen: {:08X}, response: {}"\
.format("yes"iflen(pload) >=NAEUSB_CTRL_IO_THRESHOLDelse"no", addr, len(pload), data))
returnNone
and
NAEUSB_CTRL_IO_THRESHOLD=48
So something with _cmd_writemem_bulk isn't working I guess, I don't know. I tried increasing the limit from 48 to 65 to no avail.
The text was updated successfully, but these errors were encountered:
In trying to write to a
cw305_aes_reg.v
style register with CW-Lite and CW305, I'm unable to write more than 47 bytes using thetarget.fpga_write
function below.In
CW305.py
which uses the following from
naeusb.py
and
So something with
_cmd_writemem_bulk
isn't working I guess, I don't know. I tried increasing the limit from 48 to 65 to no avail.The text was updated successfully, but these errors were encountered: