A
Amal
I have a few questions that I might have my ownn answers, but it
always comes back and bugs me.
1. Would you comment on the usage of these packages? Where would one
use numeric_bit instead of numeric_std?
My understanding is that numeric_bit defines unsigned and signed
numbers as array of bits that has two values ('0', '1'). And no
resolution function. So does this makes simulations faster? And why
not use numeric_bit if there is no tri-state bus ('Z') or no need for
signal strengths ('L', 'H') or unknowns ('U', 'X', 'W')?
Again, this question might have come up before.
2. On the use of std_logic(_vector) and std_ulogic(_vector). If there
are no multiple tri-statable drivers and no wired and/or, ... bus,
should one use std_ulogic(_vector)? What are the advantages/
disadvantages?
3. Using numeric_bit or numeric_std, how does one convert a single bit
to an integer? to_integer(unsigned(b)) does not work!
Cheers,
-- Amal
always comes back and bugs me.
1. Would you comment on the usage of these packages? Where would one
use numeric_bit instead of numeric_std?
My understanding is that numeric_bit defines unsigned and signed
numbers as array of bits that has two values ('0', '1'). And no
resolution function. So does this makes simulations faster? And why
not use numeric_bit if there is no tri-state bus ('Z') or no need for
signal strengths ('L', 'H') or unknowns ('U', 'X', 'W')?
Again, this question might have come up before.
2. On the use of std_logic(_vector) and std_ulogic(_vector). If there
are no multiple tri-statable drivers and no wired and/or, ... bus,
should one use std_ulogic(_vector)? What are the advantages/
disadvantages?
3. Using numeric_bit or numeric_std, how does one convert a single bit
to an integer? to_integer(unsigned(b)) does not work!
Cheers,
-- Amal