Help with Xilinx EDK 6.1

M

Mahim Mishra

Guest
I am trying to generate a configuration bitstream for a small design
using Xilinx's Embedded Development Kit. The design has a small
PowerPC component and a small FPGA component. When I run bitgen on the
FPGA component, it crashes silently without producing any error
messages. I have tried doing this using the EDK GUI front-end (Xilinx
Platform Studio) as well as from the command line, with the same
result. Bitgen works fine if I try to compile a design that does not
use the embedded PowerPC core.

Has anyone seen this before? Does anyone know how I can make bitgen
tell me more about why it is unhappy? All I have is the crash log that
XP generated and offers to send to Microsoft, and that is not telling
me anything about what may be wrong. I have tried to search on
xilinx.com as well as through google, but not found anything. I am a
complete newbie to Xilinx tools, so right now I am completely lost.

Here is some more information about my setup:

I am using an xc2vp20-ff1152 chip mounted on a Xilinx AFX prototyping
board. I am using ISE 6.1.03i and EDK 6.1.2, on Windows XP.

The EDK front-end runs bitgen with the command:

bitgen -w -f bitgen.ut system

Bitgen produces this output before crashing:

<snip>
Release 6.1.03i - Bitgen G.26
Copyright (c) 1995-2003 Xilinx, Inc. All rights reserved.

Loading device database for application Bitgen from file "system.ncd".
"system" is an NCD, version 2.38, device xc2vp20, package ff1152,
speed -6
Loading device for application Bitgen from file '2vp20.nph' in
environment
C:/Xilinx.
Opened constraints file system.pcf.

Sun Feb 22 19:28:24 2004
</snip>

Here is the bitgen.ut file:

<snip>
-g ConfigRate:4
-g CclkPin:pULLUP
-g TdoPin:pULLNONE
-g M1Pin:pULLDOWN
-g DonePin:pULLUP
-g DriveDone:No
-g StartUpClk:JTAGCLK
-g DONE_cycle:4
-g GTS_cycle:5
-g M0Pin:pULLUP
-g M2Pin:pULLUP
-g ProgPin:pULLUP
-g TckPin:pULLUP
-g TdiPin:pULLUP
-g TmsPin:pULLUP
-g DonePipe:No
-g GWE_cycle:6
-g LCK_cycle:NoWait
-g Security:NONE
-m
-g Persist:No
</snip>

I would very much appreciate any pointers anyone could give me about
how to diagnose my problem.

Thanks,
Mahim
 
Mahim Mishra wrote:
I am trying to generate a configuration bitstream for a small design
using Xilinx's Embedded Development Kit. The design has a small
PowerPC component and a small FPGA component. When I run bitgen on the
FPGA component, it crashes silently without producing any error
messages. I have tried doing this using the EDK GUI front-end (Xilinx
Platform Studio) as well as from the command line, with the same
result. Bitgen works fine if I try to compile a design that does not
use the embedded PowerPC core.
Have you tried opening the .NCD file bitgen tries to convert in FPGA
Editor? My guess is it's the underlying .NCD that is corrupt. In that
case, FPGA Editor will crash if you try to open it...

John Williams described somnething like this not long ago. I too have
encoutered corrupt .NCD-files from time to time, but I can't put my
finger on it, i.e. I can't reproduce it or narrow down where it comes from.

Have a look at the logfiles, especially from the par stage, and see if
there's anything unusual there. In my case par seems to finish without
errors, bit generates a corrupt .NCD...

If you can reproduce this reliably, maybe you could open a WebCase with
Xilinx. Since you're now the third person with the same problem, I'm
beginning to believe it's not just me being too stupid to use the tools. :)


--
Sean Durkin
Fraunhofer Institute for Integrated Circuits (IIS)
Am Wolfsmantel 33, 91058 Erlangen, Germany
http://www.iis.fraunhofer.de

mailto:23@iis.42.de
([23 , 42] <=> [durkinsn , fraunhofer])
 
Thanks for your reply! It seems in my case the problem is the one
addressed by Xilinx Answer Record 18558 (should have looked there
before wasting so much time over this):

When running BitGen with the "-bm" option with an empty BMM file,
BitGen seg faults.

Solution 1:

The issue is that BitGen cannot accept an empty BMM file.

The work-around is to remove the "-bm" option and the BMM file
from the BitGen command line.
In my toy example, the .bmm file was indeed empty. Of course, what
they really mean to say apparently is that I have to nuke the -bm
option from ngdbuild. I did this by removing this option from the
default fast_runtime.opt file that Xilinx Platform Studio uses, and
now bitgen is able to handle my toy example without crashing.

Mahim

Sean Durkin <23@iis.42.de> wrote in message news:<4039bc6f$1@news.fhg.de>...
Mahim Mishra wrote:
I am trying to generate a configuration bitstream for a small design
using Xilinx's Embedded Development Kit. The design has a small
PowerPC component and a small FPGA component. When I run bitgen on the
FPGA component, it crashes silently without producing any error
messages. I have tried doing this using the EDK GUI front-end (Xilinx
Platform Studio) as well as from the command line, with the same
result. Bitgen works fine if I try to compile a design that does not
use the embedded PowerPC core.
Have you tried opening the .NCD file bitgen tries to convert in FPGA
Editor? My guess is it's the underlying .NCD that is corrupt. In that
case, FPGA Editor will crash if you try to open it...

John Williams described somnething like this not long ago. I too have
encoutered corrupt .NCD-files from time to time, but I can't put my
finger on it, i.e. I can't reproduce it or narrow down where it comes from.

Have a look at the logfiles, especially from the par stage, and see if
there's anything unusual there. In my case par seems to finish without
errors, bit generates a corrupt .NCD...

If you can reproduce this reliably, maybe you could open a WebCase with
Xilinx. Since you're now the third person with the same problem, I'm
beginning to believe it's not just me being too stupid to use the tools. :)
 

Welcome to EDABoard.com

Sponsor

Back
Top