FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2006, 01:05 PM
Niv
Guest
 
Posts: n/a
Default AMD/Spansion FLASH problem

I've downloaded the am29dl322d (and others in the am29 series) and
tried to simulate with them.
There seems to be a lot of problems with this (these) model(s).
Initially, the model wouldn't compile due to some incompatibility with
the ieee.vital_timing library, requiring 2 lines to be commented out in
the two output path generate statements at the end of the model. It
then compiled OK (thanks to Mentor). However, when I try to simulate,
I get an error immediately saying:

# ** Fatal: (vsim-3421) Value 11 is out of range 1 to 4.
# Time: 0 fs Iteration: 0 Process:
/fmc_tb/u_0/u_3/behavior/functional File:
J:/POOL/ELEC_DES/Meteor/FPGA_DESIGN/LOFR/VERIFICATION/SIMULATION/MODELS/MDL_05_FLASH/RTL_HDL/am29dl324d.vhd
# Fatal error at
J:/POOL/ELEC_DES/Meteor/FPGA_DESIGN/LOFR/VERIFICATION/SIMULATION/MODELS/MDL_05_FLASH/RTL_HDL/am29dl324d.vhd
line 2683

So, are these models really that bad or am I doing something wrong?
This is now holding uo my progress in designing an FPGA interface to
these FLASH device(s).

Regards, Kev P.

Reply With Quote
  #2 (permalink)  
Old 11-24-2006, 11:13 PM
Paul Uiterlinden
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem

Niv wrote:

> I've downloaded the am29dl322d (and others in the am29 series) and
> tried to simulate with them.


Downloaded from where?

--
Paul.
www.aimcom.nl
email address: switch x and s
Reply With Quote
  #3 (permalink)  
Old 11-25-2006, 04:17 AM
FMF
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem

Kev,

The problem is that ModelSim by default points to an obsolete version
(VITAL'95) of the VITAL packages. Change your modelsim.ini file to:

ieee = $MODEL_TECH/../vital2000

It should compile without errors.

Rick Munden


Niv wrote:
> I've downloaded the am29dl322d (and others in the am29 series) and
> tried to simulate with them.
> There seems to be a lot of problems with this (these) model(s).
> Initially, the model wouldn't compile due to some incompatibility with
> the ieee.vital_timing library, requiring 2 lines to be commented out in
> the two output path generate statements at the end of the model. It
> then compiled OK (thanks to Mentor). However, when I try to simulate,
> I get an error immediately saying:
>
> # ** Fatal: (vsim-3421) Value 11 is out of range 1 to 4.
> # Time: 0 fs Iteration: 0 Process:
> /fmc_tb/u_0/u_3/behavior/functional File:
> J:/POOL/ELEC_DES/Meteor/FPGA_DESIGN/LOFR/VERIFICATION/SIMULATION/MODELS/MDL_05_FLASH/RTL_HDL/am29dl324d.vhd
> # Fatal error at
> J:/POOL/ELEC_DES/Meteor/FPGA_DESIGN/LOFR/VERIFICATION/SIMULATION/MODELS/MDL_05_FLASH/RTL_HDL/am29dl324d.vhd
> line 2683
>
> So, are these models really that bad or am I doing something wrong?
> This is now holding uo my progress in designing an FPGA interface to
> these FLASH device(s).
>
> Regards, Kev P.
>

Reply With Quote
  #4 (permalink)  
Old 11-25-2006, 04:18 AM
FMF
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem

Paul,

The models are available from the Spansion website and from
www.FreeModelFoundry.com



Paul Uiterlinden wrote:
> Niv wrote:
>
>> I've downloaded the am29dl322d (and others in the am29 series) and
>> tried to simulate with them.

>
> Downloaded from where?
>

Reply With Quote
  #5 (permalink)  
Old 11-25-2006, 10:55 AM
Niv
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem


FMF wrote:
> Kev,
>
> The problem is that ModelSim by default points to an obsolete version
> (VITAL'95) of the VITAL packages. Change your modelsim.ini file to:
>
> ieee = $MODEL_TECH/../vital2000
>
> It should compile without errors.
>
> Rick Munden
>
>

I tried pointing to the vital2000 lib, but they still failed to compile.

Reply With Quote
  #6 (permalink)  
Old 11-25-2006, 08:40 PM
Paul Uiterlinden
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem

FMF wrote:

> Paul,
>
> The models are available from the Spansion website and from
> www.FreeModelFoundry.com


I guessed as much. But then the line number of the error as reported
by the OP does not make much sense to me:

line 2683: CFI_array(16#46#) := 16#02#;

How can this give a "Value 11 is out of range 1 to 4" error? That's
why I wondered whether I was looking at the correct file. Perhaps
this is one of the wonders of ModelSim's error reporting.

--
Paul.
www.aimcom.nl
email address: switch x and s
Reply With Quote
  #7 (permalink)  
Old 11-29-2006, 02:06 PM
Niv
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem


FMF wrote:
> Kev,
>
> The problem is that ModelSim by default points to an obsolete version
> (VITAL'95) of the VITAL packages. Change your modelsim.ini file to:
>
> ieee = $MODEL_TECH/../vital2000
>
> It should compile without errors.
>
> Rick Munden
>
>
> Niv wrote:
> > I've downloaded the am29dl322d (and others in the am29 series) and
> > tried to simulate with them.
> > There seems to be a lot of problems with this (these) model(s).
> > Initially, the model wouldn't compile due to some incompatibility with
> > the ieee.vital_timing library, requiring 2 lines to be commented out in
> > the two output path generate statements at the end of the model. It
> > then compiled OK (thanks to Mentor). However, when I try to simulate,
> > I get an error immediately saying:
> >
> > # ** Fatal: (vsim-3421) Value 11 is out of range 1 to 4.
> > # Time: 0 fs Iteration: 0 Process:
> > /fmc_tb/u_0/u_3/behavior/functional File:
> > J:/POOL/ELEC_DES/Meteor/FPGA_DESIGN/LOFR/VERIFICATION/SIMULATION/MODELS/MDL_05_FLASH/RTL_HDL/am29dl324d.vhd
> > # Fatal error at
> > J:/POOL/ELEC_DES/Meteor/FPGA_DESIGN/LOFR/VERIFICATION/SIMULATION/MODELS/MDL_05_FLASH/RTL_HDL/am29dl324d.vhd
> > line 2683
> >
> > So, are these models really that bad or am I doing something wrong?
> > This is now holding uo my progress in designing an FPGA interface to
> > these FLASH device(s).
> >
> > Regards, Kev P.
> >


It would seem I've finally got the VHDl FLASH model to work!
I was editing the entity generics rather than assigning them to the
files they needed where the model was instantiated, but somehow my
editing of the source did'nt come through to the instantiated file
(elbeit 2 of the 3 files are empty).

Just need to see if my sim actually works, now that the model doesn't
crash ModelSim.

A bit of a learning curve finally climbed!

Kev P.

Reply With Quote
  #8 (permalink)  
Old 12-03-2006, 05:34 AM
FMF
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem

The "full" statement spans five lines:

IF TimingModel(11) = 't' THEN
CFI_array(16#4F#) := 16#03#;
ELSE
CFI_array(16#4F#) := 16#02#;
END IF;

I can't tell what value the generic "TimingModel" was set to but
apparently it was a string only 4 characters.


Paul Uiterlinden wrote:
> FMF wrote:
>
>> Paul,
>>
>> The models are available from the Spansion website and from
>> www.FreeModelFoundry.com

>
> I guessed as much. But then the line number of the error as reported
> by the OP does not make much sense to me:
>
> line 2683: CFI_array(16#46#) := 16#02#;
>
> How can this give a "Value 11 is out of range 1 to 4" error? That's
> why I wondered whether I was looking at the correct file. Perhaps
> this is one of the wonders of ModelSim's error reporting.
>

Reply With Quote
  #9 (permalink)  
Old 12-03-2006, 02:11 PM
Paul Uiterlinden
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem

FMF wrote:

> The "full" statement spans five lines:
>
> IF TimingModel(11) = 't' THEN
> CFI_array(16#4F#) := 16#03#;
> ELSE
> CFI_array(16#4F#) := 16#02#;
> END IF;
>
> I can't tell what value the generic "TimingModel" was set to but
> apparently it was a string only 4 characters.


But that is line 2692. The OP reported line 2683. Are we talking about
the same file here?

-- File name : am29dl324d.vhd
--
-- version: | author: | mod date: | changes made:
-- V1.0 J.Bogosavljevic 04 Apr 28 - initial release

That is the one I donwloaded from the web site.

--
Paul.
www.aimcom.nl
email address: switch x and s
Reply With Quote
  #10 (permalink)  
Old 12-06-2006, 11:01 PM
FMF
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem

Paul,

We are talking about the same file and you are right about the line
numbers. I guess I can't explain why ModelSim comes up with that line
number but I still suspect the actual problem is at line 2692.

It could be the original poster got his model from the Spansion website
which would have a shorter copyright statement at the top. Line 2983 in
his file could be line 2692 in FMF's.


Paul Uiterlinden wrote:
> FMF wrote:
>
>> The "full" statement spans five lines:
>>
>> IF TimingModel(11) = 't' THEN
>> CFI_array(16#4F#) := 16#03#;
>> ELSE
>> CFI_array(16#4F#) := 16#02#;
>> END IF;
>>
>> I can't tell what value the generic "TimingModel" was set to but
>> apparently it was a string only 4 characters.

>
> But that is line 2692. The OP reported line 2683. Are we talking about
> the same file here?
>
> -- File name : am29dl324d.vhd
> --
> -- version: | author: | mod date: | changes made:
> -- V1.0 J.Bogosavljevic 04 Apr 28 - initial release
>
> That is the one I donwloaded from the web site.
>

Reply With Quote
  #11 (permalink)  
Old 12-07-2006, 09:18 AM
Niv
Guest
 
Posts: n/a
Default Re: AMD/Spansion FLASH problem


FMF wrote:
> Paul,
>
> We are talking about the same file and you are right about the line
> numbers. I guess I can't explain why ModelSim comes up with that line
> number but I still suspect the actual problem is at line 2692.
>
> It could be the original poster got his model from the Spansion website
> which would have a shorter copyright statement at the top. Line 2983 in
> his file could be line 2692 in FMF's.
>
>
>

Yes, I downloaded it from the Spansion site, not from FMF.

Pleased to report all is working fine now. Next battle will be to
understand how to get the .sdf file implemented & working.

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SPI Flash Verify problem Roger FPGA 0 11-10-2008 01:42 PM
Operate Flash S29GL-N from Spansion [email protected] FPGA 0 01-10-2007 11:22 AM
Spartan II, Platfrom Flash, ISE 7.1 - SERIOUS PROBLEM Antti Lukats FPGA 0 09-30-2005 12:44 PM
Flash problem PH FPGA 2 02-11-2005 12:14 AM


All times are GMT +1. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved