![]() |
|
|
|
#1 |
|
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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 |
|
|
|
#3 |
|
Posts: n/a
|
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 |
|
|
|
#4 |
|
Posts: n/a
|
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 |
|
|
|
#5 |
|
Posts: n/a
|
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 |
|
|
|
#6 |
|
Posts: n/a
|
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 |
|
|
|
#7 |
|
Posts: n/a
|
Thanks mike but those links do not have information that I am looking
for! Regards John john |
|
|
|
#8 |
|
Posts: n/a
|
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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|