[source]

Module prim_onehot_enc

OneHotWidthin_i[InputWidth-1:0]logicen_ilogicout_ologic[OneHotWidth-1:0]

Block Diagram of prim_onehot_enc

One-hot encoder Outputs a one-hot encoded version of an integer input.

Parameters

Name

Default

Description

OneHotWidth

32

Ports

Name

Type

Direction

Description

in_i

wire logic [InputWidth - 1 : 0]

input

en_i

wire logic

input

out_o == '0 when en_i == 0

out_o

var logic [OneHotWidth - 1 : 0]

output