smart-pix / asic-testing-fnal-lab-notebooks

Lab notebooks and git issues for testing
0 stars 0 forks source link

06/28/24 #16

Open badeaa3 opened 3 months ago

badeaa3 commented 3 months ago

Goals:

badeaa3 commented 3 months ago

Goal 1 and 2

Screenshot 2024-06-28 at 10 11 53 AM

badeaa3 commented 3 months ago
badeaa3 commented 3 months ago

Goal 3

When I execute test 4 on spacely

> ~r4
<DBG> <2024-06-28 18:06:15> Evaluating: ROUTINE_startup_test_OP_CODE_RST_FW()
Executing test routine for OP_CODE_W_RST_FW
*******************************************
Starting register value sw_write32_0 = 553648127
Write to sw_write32_0: True. Wrote 754974719 and register reads 754974719. hex_list = ["4'h2", "4'hC", "11'h7ff", "1'h1", "1'h1", "5'h1f", "6'h3f"]
Write to sw_write32_0: True. Wrote 570425343 and register reads 570425343. hex_list = ["4'h2", "4'h1", "11'h7ff", "1'h1", "1'h1", "5'h1f", "6'h3f"]
Traceback (most recent call last):
  File "/asic/projects/C/CMS_PIX_28/abadea/temp/CMSPIX28_DAQ/spacely/PySpacely/Spacely.py", line 400, in <module>
    eval(f"{ROUTINES[routine_idx].name}()")
  File "<string>", line 1, in <module>
  File "/asic/projects/C/CMS_PIX_28/abadea/temp/CMSPIX28_DAQ/spacely/PySpacely/spacely-asic-config/CMSPIX28/CMSPIX28_Routines.py", line 180, in ROUTINE_startup_test_OP_CODE_RST_FW
    sw_read32_0, sw_read32_1, sw_read32_0_pass, sw_read32_1_pass = ROUTINE_sw_read32(sw_read32_0_expected = sw_read32_0_expected, sw_read32_1_expected = sw_read32_1_expected, sw_read32_1_nbitsToCheck = 12, print_code = "ihb")
  File "/asic/projects/C/CMS_PIX_28/abadea/temp/CMSPIX28_DAQ/spacely/PySpacely/spacely-asic-config/CMSPIX28/CMSPIX28_Routines.py", line 95, in ROUTINE_sw_read32
    sw_read32_0 = sg.INSTR["car"].get_memory("sw_read32_0")
  File "/asic/projects/C/CMS_PIX_28/abadea/temp/CMSPIX28_DAQ/spacely/PySpacely/src/Spacely_Caribou.py", line 117, in get_memory
    return_val = int(self._dev.get_memory(mem_name))
  File "/asic/projects/C/CMS_PIX_28/abadea/temp/CMSPIX28_DAQ/spacely/PySpacely/src/PearyClient.py", line 179, in _request
    return self._client._request('device.{}'.format(cmd), self.index, *args)
  File "/asic/projects/C/CMS_PIX_28/abadea/temp/CMSPIX28_DAQ/spacely/PySpacely/src/PearyClient.py", line 92, in _request
    rep_length, = LENGTH.unpack(self._socket.recv(4))
struct.error: unpack requires a buffer of 4 bytes
<INF> <2024-06-28 18:06:17> (Exit Handler) Freeing resources...

And on the peary side

xilinx-zcu102-20221:~/temp/peary$ sudo ./bin/pearyd
Password:
|23:49:21.661|    (INFO) Listening for connections on 0.0.0.0:12345
|23:49:25.465|    (INFO) Client connected from 192.168.1.10:51680
|23:49:25.469|    (INFO) Creating new instance of device "CMSPIX28".
|23:49:25.469|  (STATUS) New Caribou device instance, version peary v0.13.0
|23:49:25.469|  (STATUS) This device is managed through the device manager.
|23:49:25.469|  (STATUS) Firmware version: 0x0000000000000000 (0/0/2000 0:0:0)
|23:49:25.469|  (STATUS) Board ID: 0 Board Revision: 0x01
|23:49:25.470|    (INFO) Appending instance to device list, device ID 0
|23:49:25.471|    (INFO) Received keep-alive
Bus error

Need to understand why this happens.