Sign Extend
Sign extension operation that increases bit width while preserving sign and value for two’s complement signed numbers. Replicates the sign bit (MSB) to fill additional bits. Pure combinational logic (zero latency). Non-time-multiplexed version.
Introduction
This block performs sign extension on standard (non-TM) data streams. It extends signed two’s complement numbers to wider formats while preserving both the sign and numeric value.
Used for signed two’s complement numbers only. For unsigned numbers, use Zero Fill instead.
Pin Description
Properties
Set the input word size in bits
Default: 16
Range: 2 – 16384
Set the output word size in bits
Number of bits per output sample. Range: 0 – 128. Must be ≥ Input Width.Default: 32
Range: 0 – 16384
Functional description
Sign extension preserves the value of two’s complement signed numbers by replicating the sign bit (MSB) into all additional MSB positions.
Examples
Positive: 8-bit 01101100 (+108) → 16-bit 00000000 01101100 (+108)
Negative: 8-bit 11010110 (-42) → 16-bit 11111111 11010110 (-42)
Timing
Purely combinational with zero latency.