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.

When should we use bit and when std_logic in VHDL?

Status
Not open for further replies.

deepu_s_s

Full Member level 5
Joined
Mar 24, 2007
Messages
305
Helped
15
Reputation
30
Reaction score
5
Trophy points
1,298
Activity points
3,021
Hello Friends,

When should we use bit and when std_logic

Thanks and Regards
Deepak
 

Re: Doubt in VHDL

Most libraries and IP cores are based on STD_LOGIC and it's aggregates. There is no purpose to use BIT normally, I think. As long as you don't see a particular need...
 

Doubt in VHDL

what should i tell if a interviewer asks me this question. how should i answer him
 

Re: Doubt in VHDL

BIT has only two logics i.e 1 and 0

but BIT_LOGIC has 9 logics these are
0 - - strong 0
1 - - strong 1
X - - strong unknown
L - - weak 0
H - - weak 1
W - - weak unknown
U - - Uninitialize
Z - - high impedence
'-' - - dont care

so practically any of the above can occur so we use std_logic

this is the correct explanation.
 

Doubt in VHDL

the most important character of std_logic is defined in its resolution table.
when you wire (ie: wired and) two signal with different logic level its important to know what is the result.
refer to ieee standard for this table.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top