Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Hex files in simulation

 
Thread Tools Search this Thread
Old 06-29-2005, 02:18 PM   #1
Default Hex files in simulation


Hi,

in my simulation I have a dual port Ram (from QuartusII v.5.0) which is
initialized to all zeros with a hex file.

My problem:

After some write operations into the RAM (32 write positions
are provided by a FIFO module) I want to reset my design in my
VHDL simulation (Modelsim) because the FIFO is empty. The present
state of design does not allow to put back the write positions
into my FIFO.

After the FIFO is empty I could reset my design within my testbench.
But the contents of the RAM should also be resetted or rather
be initialized again with zeros. I could step through my RAM
and write at each address zeros into it but that takes too long
for simulation. The hex file seems to have a bearing on initialization
only at the beginning of the simulation.

Is there some possibility to initialize the RAM during simulation
by means of the hex file ?

Any suggestions are appreciated.

Rgds
André



ALuPin@web.de
  Reply With Quote
Old 06-29-2005, 04:39 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: Hex files in simulation
wrote:


> After the FIFO is empty I could reset my design within my testbench.


Yes, just push more data in using the testbench.

> But the contents of the RAM should also be resetted or rather
> be initialized again with zeros.


That's not what will happen on the bench.
A fifo can only access data it has pushed in.
You want 'U's elsewhere to make sure your
head and tail counters are working ok.

-- Mike Treseler




Mike Treseler
  Reply With Quote
Old 06-30-2005, 08:41 AM   #3
ALuPin@web.de
 
Posts: n/a
Default Re: Hex files in simulation
Hi Mike,

thank you for your answer.
In a later stage of the design the read positions of the RAM will be
pushed
back into the FIFO
whereas the corresponding entry in the RAM will be cleared that is
filled with zeros.

But right now I want to perform more functional test sequences with
regard
to writing positions in the RAM. But since there are only 32
"positions"
available I'd need to reset the content of the RAM after 32 write
actions
into it.

Rgds
André

Mike Treseler schrieb:
> wrote:
>
>
> > After the FIFO is empty I could reset my design within my testbench.

>
> Yes, just push more data in using the testbench.
>
> > But the contents of the RAM should also be resetted or rather
> > be initialized again with zeros.

>
> That's not what will happen on the bench.
> A fifo can only access data it has pushed in.
> You want 'U's elsewhere to make sure your
> head and tail counters are working ok.
>
> -- Mike Treseler




ALuPin@web.de
  Reply With Quote
Old 07-04-2005, 07:44 AM   #4
ALuPin@web.de
 
Posts: n/a
Default Re: Hex files in simulation
Any further suggestions ?

Rgds
André



ALuPin@web.de
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Video files to PSP ivan DVD Video 4 06-17-2008 11:16 AM
How to copy *.vob files on DVD to the hard disk and merge them together zengpeiwen1719 Software 0 05-24-2008 10:33 AM
Convert Video files to MP4 for iPod ivan DVD Video 0 04-26-2006 08:38 AM
Very slow recognising DVD disc Terry Pinnell DVD Video 1 03-28-2006 06:53 PM
Now I introduce some popular software of multimedia eightsome@gmail.com DVD Video 0 03-28-2006 02:29 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46