Entity: oh_mult

Diagram

N SYN TYPE [N-1:0] a [N-1:0] b asigned bsigned [2*N-1:0] product [2*N-1:0] sum [2*N-1:0] carry

Description

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

Function: Binary multiplier

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

Author: Andreas Olofsson

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

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

Generics

Generic name Type Value Description
N 32 block width
SYN "TRUE" synthesizable
TYPE "DEFAULT" implementation type

Ports

Port name Direction Type Description
a input [N-1:0] a input (multiplier)
b input [N-1:0] b input (multiplicand)
asigned input a operand is signed
bsigned input b oeprand is signed
product output [2*N-1:0] a*b final product
sum output [2*N-1:0] a*b partial sum
carry output [2*N-1:0] a*b partial carry