|
|
excamera, what I'm hacking on, daily.
jamesb@excamera.com
|
|
|
Running Xilinx WebPack under Wine on FreeBSD
Well, I got this working last weekend. It's such a relief not having
to worry about Samba mounts any more, and emulation under Wine is,
err, as good as you'd expect. While Xilinx now supports WebPack under
Wine, they don't seem to give you any help as far as running the tools.
For that, I had to run the ISE tools under Windows and look in the command logs that it leaves around to determine what to run! Here's the script I ended up with:
#!/usr/local/bin/bash
export XILINX=c:/Xilinx
export DISPLAY=192.168.0.111:1
function rw()
{
EXE=$1;
shift;
wine -- ~/c/Xilinx/bin/nt/$EXE -intstyle ise $* 2>&1 |
grep -v ^fixme | tee log
}
ENTITY=c2a
echo "vhdl work $ENTITY.vhd" > xc2s200.prj
sed "s/ENTITY/$ENTITY/" < proto.xst > xc2s200.xst
rw xst -ifn xc2s200.xst -ofn xc2s200.syr
grep -i ^error log && exit 1
rw ngdbuild -dd _ngo -uc $ENTITY.ucf -p xc2s200-pq208-5 xc2s200.ngc xc2s200.ngd
grep -i '^error' log && exit 1
rw map -p xc2s200-pq208-5 -cm area -pr b -k 4 -c 100 -tx off -o xc2s200_map.ncd xc2s200.ngd xc2s200.pcf
rw par -w -ol std -t 1 xc2s200_map.ncd xc2s200.ncd xc2s200.pcf
rw trce -e 3 -l 3 -xml xc2s200 xc2s200.ncd -o xc2s200.twr xc2s200.pcf
rw bitgen -f xc2s200.ut xc2s200.ncd
cp xc2s200.rbt $ENTITY.rbt
|
Setting up a build directory for a particular chip was similarly painful. Here's what I ended up with for the xc2s200:
/files/camera/xc2s200/.
*
|
|