How to do reverse 1-hot encoding in VHDL?

Status
Not open for further replies.

joc_06

Member level 2
Joined
Nov 28, 2003
Messages
51
Helped
7
Reputation
14
Reaction score
4
Trophy points
1,288
Activity points
478
Re: Reverse 1-hot encoding?

Hi,
I have a CAM design that outputs an address that is 1-hot encoded.
I was wondering if anyone here has done anything to reverse 1-hot encoding before in vhdl?
Thank you

Added after 5 minutes:

actually it seems fairly simple.
Just a for loop should do it.
Thanks
 

Re: Reverse 1-hot encoding?

What is an advantage of reverse 1 hot encoding....??
 

Re: Reverse 1-hot encoding?

The way I see is to do a priority encoder.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…