FPGARelated.com
Forums

EDK 8.2i/cygwin issues

Started by Peter Mendham November 3, 2006
Dear all,

I am new to the EDK and just trying out my first project.  I am running 
EDK 8.2i on Windows XP .  I already have an install of cygwin and would 
prefer to use that rather than the one bundled with the EDK.

If I do Hardware->Generate Netlist I get a parse error on the makefile, 
caused by the line
XILINX_EDK_DIR = C:/EDK_82
in system_incl.make.  The standard cygwin version of make does not 
handle the colon in this path.  If I substitute
XILINX_EDK_DIR = C\:/EDK_82
or
XILINX_EDK_DIR = /cygdrive/c/EDK_82
and run the make from the command line it is fine.  Unfortunately this 
file is created by the Platform Studio GUI every time the Generate 
Netlist command is executed and my modification is overwritten.

If I hide my cygwin installation so the Platform Studio uses the bundled 
install this problem does not occur, but there is a problem later on 
(when parsing the UCF) that I do not get when running it from the 
command line.  Even if this did work, I really want to use my install of 
cygwin, as I use it for a great deal more than Platform Studio.

I have searched the Xilinx answers and google groups but can't see 
anything, it could be that I'm just not using the magic words.  Any help 
greatly appreciated!

TIA,

Peter
Sorry, correction.  The UCF problem occurs when running the "Generate 
Bitstream" command.  The problem is evident when running the command 
either using the Xilinx installed cygwin, or using my own (with the 
XILINX_EDK_DIR correction).  This is clearly a new problem altogether, 
and most probably unrelated to my original cygwin query.

Peter

Peter Mendham wrote:
> Dear all, > > I am new to the EDK and just trying out my first project. I am running > EDK 8.2i on Windows XP . I already have an install of cygwin and would > prefer to use that rather than the one bundled with the EDK. > > If I do Hardware->Generate Netlist I get a parse error on the makefile, > caused by the line > XILINX_EDK_DIR = C:/EDK_82 > in system_incl.make. The standard cygwin version of make does not > handle the colon in this path. If I substitute > XILINX_EDK_DIR = C\:/EDK_82 > or > XILINX_EDK_DIR = /cygdrive/c/EDK_82 > and run the make from the command line it is fine. Unfortunately this > file is created by the Platform Studio GUI every time the Generate > Netlist command is executed and my modification is overwritten. > > If I hide my cygwin installation so the Platform Studio uses the bundled > install this problem does not occur, but there is a problem later on > (when parsing the UCF) that I do not get when running it from the > command line. Even if this did work, I really want to use my install of > cygwin, as I use it for a great deal more than Platform Studio. > > I have searched the Xilinx answers and google groups but can't see > anything, it could be that I'm just not using the magic words. Any help > greatly appreciated! > > TIA, > > Peter
Well, I solved the UCF problem myself with a bit of RTFM.  The project I 
am using was originally created for EDK 8.1i so uses the old naming 
convention for DCMs.  See answer record 23993.

My problem with cygwin and the EDK generated make files still stands though.

Peter

Peter Mendham wrote:
> Sorry, correction. The UCF problem occurs when running the "Generate > Bitstream" command. The problem is evident when running the command > either using the Xilinx installed cygwin, or using my own (with the > XILINX_EDK_DIR correction). This is clearly a new problem altogether, > and most probably unrelated to my original cygwin query. > > Peter
If you have kept up your cygwin distribution, it is likely this problem is
caused by the newer version of make that gets installed.  I don't remember
the version numbers for the newer versions, but if you back up to make
version 3.80, it will probably work. 

The problem has to do with supported characters in paths in the version of
make.

If you are writing your own makefiles, in some cases you can get around
the problem by using cygpath to generate compatible paths.

Terry Brown


On Fri, 03 Nov 2006 14:51:35 +0000, Peter Mendham wrote:

> Well, I solved the UCF problem myself with a bit of RTFM. The project I > am using was originally created for EDK 8.1i so uses the old naming > convention for DCMs. See answer record 23993. > > My problem with cygwin and the EDK generated make files still stands though. > > Peter > > Peter Mendham wrote: >> Sorry, correction. The UCF problem occurs when running the "Generate >> Bitstream" command. The problem is evident when running the command >> either using the Xilinx installed cygwin, or using my own (with the >> XILINX_EDK_DIR correction). This is clearly a new problem altogether, >> and most probably unrelated to my original cygwin query. >> >> Peter
Terry,

Thanks for your reply.  It looks like you're right.  I used the EDK to 
generate the makefiles, then corrected the home directory line to read:
XILINX_EDK_DIR = /cygdrive/c/EDK_82
Then saved the make files under a new name.  I then set the project to 
use these files and all is now happy.  I think I'll do this rather than 
roll back make, and wait for Xilinx to correct the makefiles produced by 
the EDK ;)

Thanks,

Peter

tbrown wrote:
> If you have kept up your cygwin distribution, it is likely this problem is > caused by the newer version of make that gets installed. I don't remember > the version numbers for the newer versions, but if you back up to make > version 3.80, it will probably work. > > The problem has to do with supported characters in paths in the version of > make. > > If you are writing your own makefiles, in some cases you can get around > the problem by using cygpath to generate compatible paths. > > Terry Brown