FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2009, 04:12 PM
Shannon
Guest
 
Posts: n/a
Default std_logic_textio library

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
  #2 (permalink)  
Old 07-10-2009, 05:30 PM
Jonathan Bromley
Guest
 
Posts: n/a
Default Re: std_logic_textio library

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?


No. It's all there, supported by every simulator I've ever
come across. And it's officially supported in the 2008 standard.

Allergy to non-standard is good, but std_logic_textio is as near
as it gets to a standard without the official rubber-stamp, and
even that is on the way.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
jonathan.bromley@MYCOMPANY.com
http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
Reply With Quote
  #3 (permalink)  
Old 07-10-2009, 11:47 PM
JimLewis
Guest
 
Posts: n/a
Default Re: std_logic_textio library

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

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Library unit VPKG is not available in library UNISIM dhruvakshad@gmail.com FPGA 1 07-19-2007 10:07 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 06:24 PM
std_logic_textio - in xilinx 5hinka FPGA 0 09-10-2004 03:40 PM
the textio lib and std_logic_textio Pedro Claro VHDL 3 07-28-2003 05:08 PM


All times are GMT +1. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved