Commit 84744fa8 authored by Paul Boven's avatar Paul Boven
Browse files

Including settings64.sh in the Makefile process. Also corrected the public...

Including settings64.sh in the Makefile process. Also corrected the public name (final output file).
parent e52094fc
......@@ -3,6 +3,8 @@
# and sends it out over the 1Gb/s ethernet
# $Id: Makefile,v 1.1 2012/01/03 21:00:36 paul Exp paul $
SETTINGS=/opt/Xilinx/14.7/ISE_DS/settings64.sh
all: main.twr main.bit SDR-5M.bit
clean:
......@@ -12,39 +14,38 @@ xst/projnav.tmp:
mkdir -p xst/projnav.tmp
fir_A.ngc: fir_A.xco fir_A.coe
coregen -b fir_A.xco -p main.prj
bash -c ". $(SETTINGS) >/dev/null; coregen -b fir_A.xco -p main.prj"
fir_B.ngc: fir_B.xco fir_B.coe
coregen -b fir_B.xco -p main.prj
bash -c ". ${SETTINGS} >/dev/null; coregen -b fir_B.xco -p main.prj"
lo.vhdl: lo.vhdl.templ lo.pl
./lo.pl lo.vhdl.templ > lo.vhdl
# XST
main.ngc: main.xst main.prj main.vhd LCD_Driver.vhd LCD_Controller.vhd fir_A.ngc fir_B.ngc xst/projnav.tmp
xst -ifn main.xst -ofn main.syr
bash -c ". ${SETTINGS} >/dev/null; xst -ifn main.xst -ofn main.syr"
# Ngdbuild
main.ngd: main.ngc main.ucf
ngdbuild -dd _nog -nt timestamp -p xc3sd1800a-fg676-4 -uc main.ucf main.ngc main.ngd
# ngdbuild -dd _nog -nt timestamp -sd ipcore_dir -p xc3sd1800a-fg676-4 -uc main.ucf main.ngc main.ngd
bash -c ". ${SETTINGS} >/dev/null; ngdbuild -dd _nog -nt timestamp -p xc3sd1800a-fg676-4 -uc main.ucf main.ngc main.ngd"
# Map
main.pcf: main.ngd
map -p xc3sd1800a-fg676-4 -cm area -ir off -pr off -c 100 -o main_map.ncd main.ngd main.pcf
bash -c ". ${SETTINGS} >/dev/null; map -p xc3sd1800a-fg676-4 -cm area -ir off -pr off -c 100 -o main_map.ncd main.ngd main.pcf"
# PAR
main.ncd: main.pcf
par -w -ol std -t 1 main_map.ncd main.ncd main.pcf
bash -c ". ${SETTINGS} >/dev/null; par -w -ol std -t 1 main_map.ncd main.ncd main.pcf"
# Timing Report
main.twr: main.ucf main.ncd
trce -v 3 -s 4 main.ncd -o main.twr main.pcf -ucf main.ucf
bash -c ". ${SETTINGS} >/dev/null; trce -v 3 -s 4 main.ncd -o main.twr main.pcf -ucf main.ucf"
# Bitgen
main.bit: main.ut main.ncd
bitgen -f main.ut main.ncd
bash -c ". ${SETTINGS} >/dev/null; bitgen -f main.ut main.ncd"
# Public name
raw.bit: main.bit
cp main.bit raw.bit
SDR-5M.bit: main.bit
cp main.bit SDR-5M.bit
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment