#!/bin/bash
# variables
PRJ_NAME=ROM_display
DEVICE=xc6slx9-csg324-3
# generate IP
coregen -b ipcore_dir/CORE.xcp -p ipcore_dir/coregen.cgp
# Synthesis
xst -ifn ${PRJ_NAME}.xst -ofn ${PRJ_NAME}.syr
# Implementation
ngdbuild -dd _ngo -sd ipcore_dir -nt timestamp -uc ${PRJ_NAME}.ucf -p
$DEVICE ${PRJ_NAME}.ngc ${PRJ_NAME}.ngd
map -p $DEVICE -w -logic_opt off -ol high -t 1 -xt 0
-register_duplication off -r 4 -mt off -ir off -pr off -lc off
-power off -o ${PRJ_NAME}_map.ncd ${PRJ_NAME}.ngd ${PRJ_NAME}.pcf
par -w -ol high -mt off ${PRJ_NAME}_map.ncd ${PRJ_NAME}.ncd
${PRJ_NAME}.pcf
# bitstream generation
bitgen -w ${PRJ_NAME}.ncd