Dear all, I could able to program the .bof file on snap program using the old casperfpga package. I am able to see the register values at using the listdev. Where I am trying to write and read those registers I am getting errors.
is that KATCP version issues ? fpga.listdev() Out[2]: ['adc16_controller', 'adc16_use_synth', 'adc16_wb_ram0', 'adc16_wb_ram1', 'adc16_wb_ram2', 'frame_cnt', 'lmx_ctrl', 'payload_length', 'reset_counts', 'sharaed_bram', 'sys_block', 'sys_board_id', 'sys_clkcounter', 'sys_rev', 'sys_rev_rcs', 'sys_scratchpad', 'xadc'] In [1]: run snap_adc.py --------------------------------------------------------------------------- KatcpRequestFail Traceback (most recent call last) /usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where) 202 else: 203 filename = fname --> 204 __builtin__.execfile(filename, *where) /home/pulsar/Documents/python_workspace/snap_adc.py in <module>() 8 fpga.program() 9 time.sleep(3) ---> 10 fpga.write_int('payload_length', 1024) 11 fpga.write_int('reset_counts', 200000000) /usr/local/lib/python2.7/dist-packages/casperfpga/casperfpga.pyc in write_int(self, device_name, integer, blindwrite, word_offset) 285 self.blindwrite(device_name, data, word_offset*4) 286 else: --> 287 self.write(device_name, data, word_offset*4) 288 LOGGER.debug('%s: write_int %8x to register %s at word offset %d ' 289 'okay%s.' % (self.host, integer, device_name, /usr/local/lib/python2.7/dist-packages/casperfpga/casperfpga.pyc in write(self, device_name, data, offset) 228 """ 229 self.blindwrite(device_name, data, offset) --> 230 new_data = self.read(device_name, len(data), offset) 231 if new_data != data: 232 unpacked_wrdata = struct.unpack('>L', data[0:4])[0] /usr/local/lib/python2.7/dist-packages/casperfpga/katcp_fpga.pyc in read(self, device_name, size, offset) 252 require_ok=True, 253 request_args=(device_name, str(offset), --> 254 str(size))) 255 return reply.arguments[1] 256 /usr/local/lib/python2.7/dist-packages/casperfpga/katcp_fpga.pyc in katcprequest(self, name, request_timeout, require_ok, request_args) 161 'Request %s on host %s failed.\n\t' 162 'Request: %s\n\tReply: %s' % --> 163 (request.name, self.host, request, reply)) 164 elif reply.arguments[0] == katcp.Message.INVALID: 165 raise KatcpRequestInvalid( KatcpRequestFail: Request read on host 192.168.41.159 failed. Request: ?read payload_length 0 4 Reply: !read fail Indrajit Barve indra...@iiap.res.in (mailto:indra...@iiap.res.in) Radio Astronomy Group (https://maps.google.com/?q=Radio%20Astronomy%20Group%20) -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop receiving emails from it, send an email to casper+unsubscr...@lists.berkeley.edu. To view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/4B705882-BF60-4871-87EA-A9118497B789%40getmailspring.com.