NetFPGA-1G-CML Demo --- openflow_switch

时间:2022-01-13 18:34:12

环境

ubuntu 14.04

vivado 15.2

ise 14.6

更多基础配置:http://www.cnblogs.com/wpqwpq/p/6771568.html

运行步骤

step1:取得赛灵思工具的路径

source /opt/Xilinx/14.6/ISE_DS/settings64.sh
source /opt/Xilinx/Vivado/2015.2/settings64.sh

step2:取得clone后仓库的路径

  路径的信息保存于该仓库的文件bashrc_addon_NetFPGA_10G中,记得根据实际路径进行修改,比如笔者的仓库位于/home/sume/NetFPGA-1G-CML-live,所以笔者该文件的信息修改如下:

export NF_ROOT=${HOME}/NetFPGA-1G-CML-live
export NF_DESIGN_DIR=${NF_ROOT}/contrib-projects/openflow_switch
export NF_WORK_DIR=/tmp/${USER}
export PYTHONPATH=${NF_ROOT}/lib/python:${NF_DESIGN_DIR}/lib/Python:${NF_ROOT}/tools/scripts:
export LD_LIBRARY_PATH=${NF_ROOT}/lib/java/NetFPGAFrontEnd/bin:${LD_LIBRARY_PATH

step3:激活配置

cd $NF_ROOT
source bashrc_addon_NetFPGA_10G

step4:编译工程

cd $NF_DESIGN_DIR
make

出现错误:

ERROR:EDK - microblaze_0_i_bram_ctrl (lmb_bram_if_cntlr) - invalid command name
"::hw_lmb_bram_if_cntlr_v2_10_b::check_iplevel_settings"
ERROR:EDK - microblaze_0_d_bram_ctrl (lmb_bram_if_cntlr) - invalid command name
"::hw_lmb_bram_if_cntlr_v2_10_b::check_iplevel_settings"
ERROR:EDK - reset_0 (proc_sys_reset) - invalid command name
"::hw_proc_sys_reset_v3_00_a::check_iplevel_settings"
ERROR:EDK - clock_generator_0 (clock_generator) - invalid command name
"::hw_clock_generator_v4_01_a::clkgen_drc"