当前位置:   article > 正文

xkISP 开源IP核的使用

xkisp

官方地址:http://xilinx.eetrend.com/blog/2022/100561857.html

以下介绍使用方法

git clone https://github.com/openasic-org/xkISP.git
cd xkISP
//在这一步的时候修改 setup_env.sh 添加自己的vivado核vitis路径
source setup_env.sh
cd tv
./isp -i input.raw -c hls_param.txt
cd tcl
make

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

在这个过程中会遇到几个错误

1. HLS ERROR:[IMPL 213-28] Failed to generate IP

解决方法:

  1. 从官网下载一个补丁:https://support.xilinx.com/s/article/76960?language=en_US
    将文件下载到vivado的安装路径下
    在这里插入图片描述
    然后根据自己的版本,执行命令
* 2014 - 2018 (inclusive)
  You must have python version 2.7.5 or later installed.
  Assuming python is in the path, this patch can be applied to both Windows and Linux by running:
  python y2k22_patch\patch.py

* 2019.1
  On Windows run:
  Vivado\2019.1\tps\win64\python-2.7.5\python.exe y2k22_patch\patch.py

  On Linux run:
  export LD_LIBRARY_PATH=$PWD/Vivado/2019.1/tps/lnx64/python-2.7.5/lib/
  Vivado/2019.1/tps/lnx64/python-2.7.5/bin/python2.7 y2k22_patch/patch.py

2019.2
  On Windows run:
  Vivado\2019.2\tps\win64\python-2.7.5\python.exe y2k22_patch\patch.py

  On Linux run:
  export LD_LIBRARY_PATH=$PWD/Vivado/2019.2/tps/lnx64/python-2.7.5/lib/
  Vivado/2019.2/tps/lnx64/python-2.7.5/bin/python y2k22_patch/patch.py

* 2020.1
  On Windows run:
  Vivado\2020.1\tps\win64\python-2.7.16\python.exe y2k22_patch\patch.py

  On Linux run:
  export LD_LIBRARY_PATH=$PWD/Vivado/2020.1/tps/lnx64/python-2.7.16/lib/
  Vivado/2020.1/tps/lnx64/python-2.7.16/bin/python y2k22_patch/patch.py

* 2020.2
  On Windows run:
  Vivado\2020.2\tps\win64\python-3.8.3\python.exe y2k22_patch\patch.py

  On Linux run:
  export LD_LIBRARY_PATH=$PWD/Vivado/2020.2/tps/lnx64/python-3.8.3/lib/
  Vivado/2020.2/tps/lnx64/python-3.8.3/bin/python y2k22_patch/patch.py

* 2020.3
  On Windows run:
  Vivado\2020.3\tps\win64\python-3.8.3\python.exe y2k22_patch\patch.py

  On Linux run:
  export LD_LIBRARY_PATH=$PWD/Vivado/2020.3/tps/lnx64/python-3.8.3/lib/
  Vivado/2020.3/tps/lnx64/python-3.8.3/bin/python3 y2k22_patch/patch.py

* 2021.1
  On all Linux Flavors (Centos, RHEL, Ubuntu 18,) where python version 3.8.3 used, follow the  instructions below
     export LD_LIBRARY_PATH=$PWD/Vivado/2021.1/tps/lnx64/python-3.8.3/lib/
     Vivado/2021.1/tps/lnx64/python-3.8.3/bin/python3 y2k22_patch/patch.py
  On Windows run:
    Vivado\2021.1\tps\win64\python-3.8.3\python.exe y2k22_patch\patch.py


* 2021.2
  On all Linux Flavors (Centos, RHEL, Ubuntu 18,) where python version 3.8.3 used, follow the  instructions below
     export LD_LIBRARY_PATH=$PWD/Vivado/2021.2/tps/lnx64/python-3.8.3/lib/
     Vivado/2021.2/tps/lnx64/python-3.8.3/bin/python3 y2k22_patch/patch.py
  On Windows run:
    Vivado\2021.2\tps\win64\python-3.8.3\python.exe y2k22_patch\patch.py
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59

2. -bash:export:’ ’ :not a valid identifier

export后面有空格,删掉就好了

2. ERROR: System recieved a signal named SIGSEGV and the program has to stop immediately!

这个是因为tcl文件中有相对路径,必须使用绝对路径,所以在tcl文件夹中的所有tcl文件都需要改成绝对路径

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/162972
推荐阅读
相关标签
  

闽ICP备14008679号