Entity: oh_bin2onehot

Diagram

N NB [NB-1:0] in [N-1:0] out

Description

#############################################################################

Function: Binary to one hot encoder

#############################################################################

Author: Andreas Olofsson

License: MIT (see LICENSE file in OH! repository)

#############################################################################

Generics

Generic name Type Value Description
N 2 output vector width
NB $clog2(N) binary encoded input

Ports

Port name Direction Type Description
in input [NB-1:0] unsigned binary input
out output [N-1:0] one hot output vector