Connectivity within a stave side
An example to load the configs into a stave side structure in a runkey. No references yet!
new file: created_runkeys/configDB_connectivity.py
new file: created_runkeys/formattedRunkey_cleanup.py
Run the demo as:
python3 formattedRunkey_cleanup.py --demo
-c ~/.../stave_configs/temp_stave_configs_2024-03/temp-example/
PPB1D:CERNSR1_stave3_testing_setup_hcc27.json
Edited by Alex Toldaiev
Merge request reports
Activity
Filter activity
It supposed to look at the given connectivity configs and grab all the HCC configs accordingly. Therefore, to make debugging and demo-printing easier, I made a reduced connectivity file for the stave PPB1D (aka "stave3"), which includes only hcc27: CERNSR1_stave3_testing_setup_hcc27.json
An example pretty-print: example_pretty_print.txt
Ok, in principle, it should be ready. The point to test is whether configDB can handle references to whole nodes, not just payloads.
I.e. now it looks like this: example_pretty_print.txt
With this as a reference to a stave fiber under Felix tree:
{'type': 'Root', 'children': [{'type': 'Felix', 'payloads': [...] 'children': [{'type': 'FELIX_DEVICE', ...}, {'type': 'FELIX_DEVICE', 'payloads': [{'type': 'FLX_DEVICE_NUM', 'data': 1}], 'children': [{'type': 'GBT_RX', 'payloads': [{'type': 'GBT_LINK', 'data': 0}], 'children': []}, ..., {'type': 'GBT_RX', 'payloads': [{'type': 'GBT_LINK', 'data': 3}], 'children': [{'id': 'b1eac704-dc53-4e34-a3ea-7f7e1f8b5481'}]}, ...
And the same fiber in the Staves:
{'type': 'Staves', 'payloads': [], 'children': [{'type': 'Stave', 'payloads': [{'type': 'UUID', 'data': 'unknown'}, {'type': 'staveName', 'data': 'PPB1D'}, {'type': 'staveType', 'data': 'LS'}, {'type': 'chipType', 'data': 'Star_vH1A1'}], 'children': [{'type': 'StaveSide', 'payloads': [{'type': 'sideType', 'data': 'side_m'}], 'children': []}, {'type': 'StaveSide', 'payloads': [{'type': 'sideType', 'data': 'side_s'}], 'children': [{'type': 'GBT_TX_Fiber', 'payloads': [], 'children': [{...}]}, {'type': 'GBT_RX_Fiber', 'payloads': [{'type': 'rx_fiber_type', 'data': 'rx_pri'}], 'children': [{'type': 'elink', 'payloads': [{'type': 'elink_number', 'data': 24}, {'type': 'egroup', 'data': 6}, {'type': 'epath', 'data': 0}], 'children': [{'id': 'b8eecd86-2097-458a-aed9-0311491dd24a'}]}], # <--- the connectivity within the stave 'id': 'b1eac704-dc53-4e34-a3ea-7f7e1f8b5481'}, {'type': 'HCC', 'id': 'b8eecd86-2097-458a-aed9-0311491dd24a', 'payloads': [{'type': 'itsdaq_number', 'data': 27}, {'type': 'module_number', 'data': 13}, {'type': 'hybrid_name', 'data': 'X'}, {'type': 'config', ...}, ... 'children': []}]}]}]}]}
Edited by Alex Toldaievmentioned in commit cd8e45bf
Please register or sign in to reply