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.
in | input | The signed data input. |
out | output | The converted data output. |
width | Data bit width (default 9). |
wire [15:0] din, dout; OffsetBinary #(.width(16)) instance (.in(din), .out(dout));