Zybo > Chronicles blog 50 > AMPの使用 > 7. OCMによるCore同士の通信 > 実装 > データ転送 > 1:Xil_IO使用 / 2:ポインタ使用

More than 1 year has passed since last update.

MicroZed Chronicles リスト

@ Adam Taylor blog

OCM経由でのCore0, Core1間の通信の実装例

The demo for this will use CPU0 to communicate over the UART link to a laptop. We’ll send an 8-bit ASCII value from the laptop to the Zynq Soc’s UART. Once received, this 8-bit value will be transferred into the selected OCM memory address, which is shared between the two processors. Each time its private timer expires, CPU1 will read this memory address and set its GPIO output pins accordingly.




The first method uses the generic Xilinx I/O functions to read from and write to the selected memory address.


read_char = Xil_In8(0xFFFF0000);

The second method is for both programs to access the memory location using pointers.

#define LED_OP (*(volatileunsignedint *)(0xFFFF0000))