E
eneko
Guest
Hello! I`ve a problem which I don´t know how resolve.
I have two std_logic_vectors with a length of 8.
I want to compare them getting three bytes of each.
These three bytes must be More Significant Bits (wich aren´t 0`s) of the
bigger number.
Here is an example of I want to do:
I have the numbers 43 and 15
(43) 00101011
(15) 00001111
I view that the most significant bit is 43`s sixth bit, so,
I want get (101) from 43 and (001) from 15.
Which is the simpliest, and fastest (it can be done in cominational mode?
Is there any function wich returns this?)
Thanks for all!
I have two std_logic_vectors with a length of 8.
I want to compare them getting three bytes of each.
These three bytes must be More Significant Bits (wich aren´t 0`s) of the
bigger number.
Here is an example of I want to do:
I have the numbers 43 and 15
(43) 00101011
(15) 00001111
I view that the most significant bit is 43`s sixth bit, so,
I want get (101) from 43 and (001) from 15.
Which is the simpliest, and fastest (it can be done in cominational mode?
Is there any function wich returns this?)
Thanks for all!