Quatrus II

J

john

Guest
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 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
 
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 wrote:

I am asking that how can I define the reset signal using quatrusII's
vector waveform
http://groups.google.com/groups/search?q=vhdl+quartus+simulator+%22your+source+code%22
 
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 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
 
Thanks mike but those links do not have information that I am looking
for!
Regards
John
 
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" <conphiloso@hotmail.com> wrote in message
news:1149702758.744651.307370@f6g2000cwb.googlegroups.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
 

Welcome to EDABoard.com

Sponsor

Back
Top