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

Reply

VHDL - Quatrus II

 
Thread Tools Search this Thread
Old 06-06-2006, 09:47 PM   #1
Default Quatrus II


Hello,

I have following questions

1. How can I read a text file using quatrus II's simulator? I want to
replace a RAM with a text file containing 14 bit wide hex numbers. Can
I read that file into the simulator?
2. How can I define the value of the signal say "Reset" that it stays
high for 20 ns and low for rest of the time of functional stimulation.

Thanks
Regards
john



john
  Reply With Quote
Old 06-07-2006, 03:23 PM   #2
Ralf Hildebrandt
 
Posts: n/a
Default Re: Quatrus II
john wrote:


> 1. How can I read a text file using quatrus II's simulator? I want to
> replace a RAM with a text file containing 14 bit wide hex numbers. Can
> I read that file into the simulator?


Reading text files into VHDL does not depend on the simulator. You can
use std.textio.all for this purpose. This topic is covered by many VHDL
books.

If you need really powerful file I/O, there are packages that offer
ANSI-C-like file I/O. <http://bear.ces.cwru.edu/vhdl/> Note that there
is also a paper at this page.


> 2. How can I define the value of the signal say "Reset" that it stays
> high for 20 ns and low for rest of the time of functional stimulation.


reset<='1', '0' after 20 ns;

You should read a VHDL book, because this is a very basic question
covered at the first pages of many books.


Ralf


Ralf Hildebrandt
  Reply With Quote
Old 06-07-2006, 06:52 PM   #3
john
 
Posts: n/a
Default Re: Quatrus II
Hello,

Thanks for ur reply! I know that I can use std.textio. But my question
was regarding QuatrusII simulator, which u answered.


>You should read a VHDL book, because this is a very basic question
>covered at the first pages of many books.

I am asking that how can I define the reset signal using quatrusII's
vector waveform file not in VHDL test bench. Please Advice!

John



john
  Reply With Quote
Old 06-08-2006, 05:03 AM   #4
Mike Treseler
 
Posts: n/a
Default Re: Quatrus II
john wrote:

> I am asking that how can I define the reset signal using quatrusII's
> vector waveform


http://groups.google.com/groups/sear...urce+cod e%22


Mike Treseler
  Reply With Quote
Old 06-08-2006, 09:33 AM   #5
hnain.said@gmail.com
 
Posts: n/a
Default Re: Quatrus II

Ralf Hildebrandt wrote:
> john wrote:
>
>
> > 1. How can I read a text file using quatrus II's simulator? I want to
> > replace a RAM with a text file containing 14 bit wide hex numbers. Can
> > I read that file into the simulator?

>
> Reading text files into VHDL does not depend on the simulator. You can
> use std.textio.all for this purpose. This topic is covered by many VHDL
> books.
>
> If you need really powerful file I/O, there are packages that offer
> ANSI-C-like file I/O. <http://bear.ces.cwru.edu/vhdl/> Note that there
> is also a paper at this page.
>
>
> > 2. How can I define the value of the signal say "Reset" that it stays
> > high for 20 ns and low for rest of the time of functional stimulation.

>
> reset<='1', '0' after 20 ns;
>
> You should read a VHDL book, because this is a very basic question
> covered at the first pages of many books.
>
>
> Ralf



Hi

I think that the instruction "after" is not syntiteasable !

warm regards



hnain.said@gmail.com
  Reply With Quote
Old 06-08-2006, 04:10 PM   #6
Ralf Hildebrandt
 
Posts: n/a
Default Re: Quatrus II
wrote:

>>> 2. How can I define the value of the signal say "Reset" that it stays
>>> high for 20 ns and low for rest of the time of functional stimulation.


>> reset<='1', '0' after 20 ns;


> I think that the instruction "after" is not syntiteasable !


You are right, but the question was for "functional stimulation" which I
read as "testbench". Maybe I misinterpret this...

Ralf


Ralf Hildebrandt
  Reply With Quote
Old 06-08-2006, 05:44 PM   #7
john
 
Posts: n/a
Default Re: Quatrus II
Thanks mike but those links do not have information that I am looking
for!
Regards
John



john
  Reply With Quote
Old 06-09-2006, 04:08 AM   #8
Rob
 
Posts: n/a
Default Re: Quatrus II
John,

Maybe I don't understand your question; but you can hand-draw signals using
Altera's waveform editor. Does this answer your question?

Rob

"john" <> wrote in message
news: ups.com...
> Hello,
>
> Thanks for ur reply! I know that I can use std.textio. But my question
> was regarding QuatrusII simulator, which u answered.
>
>
>>You should read a VHDL book, because this is a very basic question
> >covered at the first pages of many books.

> I am asking that how can I define the reset signal using quatrusII's
> vector waveform file not in VHDL test bench. Please Advice!
>
> John
>





Rob
  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




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