Entity: oh_bin2gray

Diagram

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

Description

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

Function: Binary to gray encoder

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

Author: Andreas Olofsson

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

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

Generics

Generic name Type Value Description
N 32 width of data inputs

Ports

Port name Direction Type Description
in input [N-1:0] binary encoded input
out output [N-1:0] gray encoded output

Signals

Name Type Description
gray reg [N-1:0]
bin wire [N-1:0]
i integer

Processes

Type: always