Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

about the usage of the VHDL libraries

Status
Not open for further replies.

lahrach

Full Member level 3
Joined
Feb 6, 2009
Messages
170
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,285
about VHDL

hello all,

somme times some vhdl codes are written without libraries like

ntity b01 is
port(
line1: in bit;
end b01;

architecture BEHAV of b01 is

end BEHAV;

someone can explain me why it is not necesary to writre

library ieee;
use ieee.std_logic_1164.all;

thanks again
 

Re: about VHDL

Libraries include some definitions, primitives, data types, arithmetic and some other functions...
If libraries is not defined in your VHDL codes, you'll have problems while using them..

Usually, libraries come directly to top of code file by default.... it's enough most of time...
 

Re: about VHDL

Hi,

In your example the type that is used is "bit". This is an internal defined type in VHDL. As soon as you use std_(u)logic, unsigned, etc, you need to use the std_logic_1164 library that defines these types. The use of bit-type is limited and not used very much. Mostly std_logic is used.

Devas
 

Re: about VHDL

actually if u are dealing with inly (0,1) then BIT format is enough.
for any designs in vhdl u need 3 libraries called (IEEE,WORK,STD).From this WORK AND STD IS default.you rBIT comes under STD library which is default.
So you can define without library declaration.



is that clear?


edrin
 

Re: about VHDL

Dear edrin,
To mimic most of hardwares', 2-state types are not enough.. Please remember that, VHDL is used for hardware description.. So, most of time, 8-state values are used..

Ilgaz
 

hi

but there is only three states which are synthetezable( 0.1.z)

isn't it
 

hello... In vhdl library, Is there any option for complex multiplications?? i mean handling complex values????
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top