Where to find std_arith?

H

Hans K Eide

Guest
I am a novice with VHDL and trying to teach myself the language.

I use to write my design in modelsim, and my compilation in quartus. But
on the design I am working with now (making a FIFI) it seems I must use
the commando use work.std_arith.all to overload the + operand.

So, where can I fond the std_arith package, and how do I map it into my
work library?

Thanks
Hans Kristian Eide
 
$MODELSIM_DIRECTORY\ieee\

p.s. what is FIFI?

--
Alex

On Mon, 21 Nov 2005 22:18:41 -0000, Hans K Eide <hans.eide@student.uib.no>
wrote:

I am a novice with VHDL and trying to teach myself the language.

I use to write my design in modelsim, and my compilation in quartus. But
on the design I am working with now (making a FIFI) it seems I must use
the commando use work.std_arith.all to overload the + operand.

So, where can I fond the std_arith package, and how do I map it into my
work library?

Thanks
Hans Kristian Eide


--
Alex
 
The std_arith package was replaced by the IEEE numeric_std, which is
available in the Modelsim distribution disk under vhdl_scr/ieee. I
suggest taht you transition to that package if possible.
--------------------------------------------------------------------------
Ben Cohen Trainer, Consultant, Publisher (310) 721-4830
http://www.abv-sva.org/ ben@abv-sva.org
* Co-Author: SystemVerilog Assertions Handbook, 2005 ISBN 0-9705394-7-9
* Co-Author: Using PSL/SUGAR for Formal and Dynamic Verification 2nd
Edition, 2004, ISBN 0-9705394-6-0
* Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn
0-9705394-2-8
* Component Design by Example ", 2001 isbn 0-9705394-0-1
* VHDL Coding Styles and Methodologies, 2nd Edition, 1999 isbn
0-7923-8474-1
* VHDL Answers to Frequently Asked Questions, 2nd Edition, isbn
0-7923-8115
---------------------------------------------------------------------------
 
Read FAQ @ http://www.vhdl.org/comp.lang.vhdl Part 1. As others noted,
you need only numeric_std pkg.

HTH
Ajeetha
www.noveldv.com
 
p.s. what is FIFI?
FIFI = First In First In, a variant of a FINO (First In Never Out).
One of the most popular chips to accomplish that function is the
Signetics 25120, see the datasheet here:
http://www.ganssle.com/misc/wom1.jpg
http://www.ganssle.com/misc/wom2.jpg
 
jens a écrit:
FIFI = First In First In, a variant of a FINO (First In Never Out).
One of the most popular chips to accomplish that function is the
Signetics 25120, see the datasheet here:
http://www.ganssle.com/misc/wom1.jpg
http://www.ganssle.com/misc/wom2.jpg
Great!!!
Has this been actually published by Signetics?
Thanks for the good laugh anyway :eek:)

Nicolas
 
On 22 Nov 2005 05:39:20 -0800, "jens" <roden@rochester.rr.com> wrote:

+<> p.s. what is FIFI?
+
+<FIFI = First In First In, a variant of a FINO (First In Never Out).
+<One of the most popular chips to accomplish that function is the
+<Signetics 25120, see the datasheet here:
+<http://www.ganssle.com/misc/wom1.jpg
+<http://www.ganssle.com/misc/wom2.jpg
*****

Which is a variant of FISH - First In Still Here.

james
 
Should numeric_std pkg also replace std_logic_signed and std_unsigned for
rtl synthesis? That is, does it mean it is not recommended to do arithmetic
in std_logic, but should be converted to signed or unsigned and do the
arithmetic using numeric_std?

"Ajeetha" <ajeetha@gmail.com> wrote in message
news:1132624799.585255.282920@g44g2000cwa.googlegroups.com...
Read FAQ @ http://www.vhdl.org/comp.lang.vhdl Part 1. As others noted,
you need only numeric_std pkg.

HTH
Ajeetha
www.noveldv.com
 
Okashii wrote:
Should numeric_std pkg also replace std_logic_signed and std_unsigned for
rtl synthesis? That is, does it mean it is not recommended to do arithmetic
in std_logic, but should be converted to signed or unsigned and do the
arithmetic using numeric_std?
Yes, absolutely.

-a
 
Hans,
Read the paper, "VHDL Math Tricks of the Trade" that is available
at: http://www.synthworks.com/papers/index.htm

Cheers,
Jim
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jim Lewis
Director of Training mailto:Jim@SynthWorks.com
SynthWorks Design Inc. http://www.SynthWorks.com
1-503-590-4787

Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I am a novice with VHDL and trying to teach myself the language.

I use to write my design in modelsim, and my compilation in quartus. But
on the design I am working with now (making a FIFI) it seems I must use
the commando use work.std_arith.all to overload the + operand.

So, where can I fond the std_arith package, and how do I map it into my
work library?

Thanks
Hans Kristian Eide
 

Welcome to EDABoard.com

Sponsor

Back
Top