2019.12.29 xilinx SDK交叉编译工具 编译nest 运行在PYNQ板卡

落爺英雄遲暮 提交于 2019-12-29 14:44:35

2019.12.29xilinx SDK交叉编译工具 编译nest 运行在PYNQ板卡

–如有错误之处,请不吝赐教!

准备工作

nest-simulation-2.16.0
xilinx vivado SDK 2018.2(ubuntu环境)

NEST Cmake指定xilinx SDK中交叉编译器

cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/likang/nest-16.0 ./ -DCMAKE_C_COMPILER=/opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=/opt/Xilinx/SDK/2018.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-g++

*gsl readline ltdl等库可直接用交叉编译,目前还没有测试。
cmake 后的configure
在这里插入图片描述

将编译后的NEST安装文件考到PYNQ板卡

*修改nest/bin/nest_vars.sh文件,指定nest安装路径。
在这里插入图片描述
并将source /home/xilinx/nest-16.0/bin/nest_vars.sh 添加到~/.bashrc(vim ~/.bashrc)
然后source ~/.bashrc

运行NEST

nest
在这里插入图片描述
或者
python
import nest

*目前因为python交叉编译的版本与PYNQ 上python运行的版本不一 还没有测试成功

注:
nest官网:https://www.nest-simulator.org/
其他的软件的交叉编译也可参考如上!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!