(原创)使用Makefile文件一键提取ISE项目的网表和延时文件
NETGEN_PATH= /opt/Xilinx92i/bin/lin/netgen PROJECT_NAME= TOP_NAME all: make clean echo "Generating NetList Type:Max ..." rm -rf *.temp.pcf cp ${PROJECT_NAME}.pcf ${PROJECT_NAME}.temp.pcf echo "VOLTAGE = 1.425 V;" >> ${PROJECT_NAME}.temp.pcf echo "TEMPERATURE = 125 C;" >> ${PROJECT_NAME}.temp.pcf ${NETGEN_PATH} -sta -dir sta -fn -pcf ${PROJECT_NAME}.temp.pcf -w ${PROJECT_NAME}.ncd ${PROJECT_NAME}_max.v echo "Generating NetList Type:Typ ..." rm -rf *.temp.pcf cp ${PROJECT_NAME}.pcf ${PROJECT_NAME}.temp.pcf echo "VOLTAGE = 1.5 V;" >> ${PROJECT_NAME}.temp.pcf echo "TEMPERATURE = 25 C;" >> ${PROJECT_NAME}.temp.pcf ${NETGEN_PATH} -sta -dir sta -fn -pcf ${PROJECT_NAME}.temp.pcf -w ${PROJECT_NAME}.ncd ${PROJECT_NAME}_typ.v echo "Generating NetList Type:Min ..." rm -rf *.temp.pcf cp ${PROJECT_NAME}.pcf ${PROJECT_NAME}.temp.pcf echo "VOLTAGE = 1.575 V;" >> ${PROJECT_NAME}.temp.pcf echo "TEMPERATURE = -55 C;" >> ${PROJECT_NAME}.temp.pcf ${NETGEN_PATH} -sta -dir sta -fn -pcf ${PROJECT_NAME}.temp.pcf -w ${PROJECT_NAME}.ncd ${PROJECT_NAME}_min.v rm -rf *.temp.pcf rm -rf ./sta/*.nlf ./sta/*.pcs echo "All Works done!" clean: rm -dRf sta rm -rf *.temp.pcf
该Makefile文件仅适用于工况温度为代码中的器件,如果实际不一致,请根据实际情况修改。