Configuration file and code to generate the memory mapping between the MCU and the Zynq. Here we generate the C code used on the MCU which sends the data and the XML files used on the Zynq to interpret the data.
On the MCU side, we define which addresses the MCU will send with the data. (python code mcu_generate.py)
On the Zynq side, the XML files allow us to decode the memory on the zynq according to the data as laid out in the MCU. (python code xml_generate.py)
The input files are in the data directory and are given by PL_MEM_CM_rev<i>.yml where i refers to the CM revision number.
There are two outputs:
- The
Ccode consists of acand a header file. It is compiled into the MCU binary in thecm_mcurepo - The xml files must be included in the Zynq in the
/fw/CM/CornellCM_MCU/address_table/modules_CM_MCUdirectory. Note that thexml_generatescript creates aPM_MEM_CM_rev<i>.xmlfile but the file that is included is just calledPL_MEM_CM.xml.