Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > std_logic_textio library

Reply
Thread Tools

std_logic_textio library

 
 
Shannon
Guest
Posts: n/a
 
      07-10-2009
I'm planning on using std_logic_textio library for my testbench. I
just want access to the hread / hwrite functions. I don't like doing
non-standard things. Am I making a mistake?

Shannon
 
Reply With Quote
 
 
 
 
JimLewis
Guest
Posts: n/a
 
      07-10-2009
On Jul 10, 9:30*am, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
wrote:
> On Fri, 10 Jul 2009 08:12:27 -0700 (PDT), Shannon wrote:
> >I'm planning on using std_logic_textio library for my testbench. *I
> >just want access to the hread / hwrite functions. *I don't like doing
> >non-standard things. *Am I making a mistake?

>
> And it's officially supported in the 2008 standard.


Try turning on the VHDL-2008 switch in your simulator.
If hread and hwrite work without the package reference to
std_logic_textio, then these new features has been implemented.
It works in a couple of the simulators I have tried it.

In the 2008 standard, these functions were upgraded (now handle
parameters that are not a multiple of 4 bits for hexadecimal or
3 bits for octal) and were moved to std_logic_1164. The package
std_logic_textio still exists for backward compatibility.
It has aliases to the functions in std_logic_1164 (to allow
selected name references to the package to still work).

If your simulator does not support VHDL-2008 textio yet,
use std_logic_textio, but avoid selected name references
(such as ieee.std_logic_textio.hwrite) to the subprograms in
the package. This way when you have VHDL-2008 support, your
design will work with or without the reference to
std_logic_textio.

Cheers,
Jim

SynthWorks VHDL Training
www.SynthWorks.com



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I use IEEE.std_logic_textio.all? obaskirt VHDL 0 09-20-2007 12:05 PM
Error: VHDL Use Clause error at quartustest.vhd(6): design library "IEEE" does not contain primary unit "std_logic_textio" feiyang VHDL 1 11-23-2006 03:08 AM
std.textio and ieee.std_logic_textio procedure overloading Magne Munkejord VHDL 1 08-23-2006 05:24 PM
Re: Difference between Web Control Library and Class Library Mythran ASP .Net 0 08-24-2004 05:53 PM
the textio lib and std_logic_textio Pedro Claro VHDL 3 07-28-2003 04:08 PM



Advertisments