How do I interface the GPIOs on zedboard?

2 ビュー (過去 30 日間)
Vallabh
Vallabh 2024 年 9 月 26 日
編集済み: Sameer Mule 2024 年 10 月 9 日
I have setup the Zedboard using the HDL coder support package for xilinx devices. But I don't find any available interfaces to use the onboard GPIOs or any peripherals. I have looked into the resolution by simulink https://in.mathworks.com/matlabcentral/answers/426029-how-to-control-gpio-of-arm-on-zedboard that it currently does not support any FPGAs.
Is it possible to do with the S functions?

回答 (1 件)

Sameer Mule
Sameer Mule 2024 年 10 月 8 日
You can utilize the addExternalIOInterface function within the board plugin to incorporate GPIO into your design. For more detailed information, please refer to the documentation at the following link: MathWorks Documentation.
For more information about Zedboard plugins, please visit the following link: MathWorks Documentation.
  2 件のコメント
Vallabh
Vallabh 2024 年 10 月 9 日
Is there any example to interface GPIOs using the function available?
Sameer Mule
Sameer Mule 2024 年 10 月 9 日
編集済み: Sameer Mule 2024 年 10 月 9 日
In MATLAB R2024a and later, navigate to matlabroot/toolbox/hdlcoder/boards/amd/+ZedBoard/. For versions before R2024a, go to support_package_installation_folder/toolbox/hdlcoder/supportpackages/zynq7000/+ZedBoard/. In these directories, you can see how addExternalIOInterface is utilized in plugin_board.m for LEDs, switches, and push buttons. You can use this as a reference to add GPIO similarly.

サインインしてコメントする。

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by