Re: Writing Hex values to file in VHDL?
On 23 Mrz., 02:10, "Pete Fraser" <pfra...@covad.net> wrote:
> I'm trying to dump eight hex values per line
> into a file, and can't work out how to do it.
> * *for index in 0 to 127 loop
> * * for sample_sel in 0 to 7 loop
> * * *sample_val := integer(scale * sin(phase(sample_sel)));
> * * *write ( sample_line, sample_val, RIGHT, 10);
> * * *phase(sample_sel) := phase(sample_sel) + phase_inc(sample_sel);
> * * end loop;
> * * writeline ( ip_dat, sample_line );
> * *end loop;
> does what I want, but with decimal values.
> If I change to:
> hwrite ( sample_line, sample_val, RIGHT, 10);
> write ( sample_line, to_hstring(sample_val), RIGHT, 10);
> it doesn't compile.
> Any thoughts?
which simulator do you use?
Probably the compile options are set to some old VHDL standard or you
are using wrong or outdated libraries for the functions you intend to
Maybe this link is helpful too:
Have a nice simulation
|All times are GMT. The time now is 07:49 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.