OffsetBinary.v

This module converts a signed vector to its offset-binary representation, which is to say that it inverts the sign bit. Because it does so little, its utility is to promote readability of code.

Ports

ininputThe signed data input.
outoutput    The converted data output.

Parameters

widthData bit width (default 9).

Example instantiation in Verilog:

wire		[15:0]	din, dout;
OffsetBinary	#(.width(16)) instance (.in(din), .out(dout));