'bit' and 'std_logic'

  • Thread starter LluĂ­s Batlle i Rossell
  • Start date
L

LluĂ­s Batlle i Rossell

Guest
In most of the examples I see that people uses std_logic instead of 'bit'
for most of the binary logic. Why? Should I avoid using 'bit'?

In most of the cases I don't specially care about 'U' states.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
 
Bit is two-state, in many cases you need more than just 0 & 1 - Z, X
are good indications especially during simulations - might indicate
potential wrong design/coding.

HTH
Ajeetha
--
Interested in expert PSL/SVA training in Bangalore?
Visit www.noveldv.com/cvc.html
 
LluĂ­s Batlle i Rossell wrote:
In most of the examples I see that people uses std_logic instead of
'bit' for most of the binary logic. Why?
Most like to be able to see uninitialized
registers during simulation.

Should I avoid using 'bit'?
If you are writing all of your own code,
there is no real downside, but no upside either.
If you use code by others, you will make
frequent use of conversion functions.

In most of the cases I don't specially care about 'U' states.
Someday you will get "bit" by one of those 'U's.


-- Mike Treseler
 

Welcome to EDABoard.com

Sponsor

Back
Top