Block Preview

Introduction

This block performs zero-fill bit extension on standard (non-TM) data streams. It extends the input word to a wider output format by appending zeros, preserving the unsigned value of the input.

Used for unsigned numbers only. For signed numbers, use Sign Extend instead.

Pin Description

IN Input Variable bit BIT VECTOR
Input binary data (unsigned), non-TM.
Default: Must be connected
OUT Output Variable bit BIT VECTOR
Zero-extended output (unsigned), non-TM, combinational.

Properties

Property window

Input Size InputWordSize

Set the input word size in bits

Default: 16

Range: 2 – 16384

Output Size OutputSize

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

Vector Align Align

Select if output should be alligned on right (Zeros fill the MSBs) or LEFT

  • RIGHT: Input in LSBs, zeros in MSBs (standard)
  • LEFT: Input in MSBs, zeros in LSBs (left shift)

Default: RIGHT

Options: RIGHT LEFT

InputWidth InputWidth
Number of bits per input sample. Range: 2 – 128. Must be ≤ Output Size.

Functional description

Extends input word by padding with zeros.

Alignment modes

  • RIGHT alignment: Input in LSBs, zeros in MSBs (standard unsigned extension)
  • LEFT alignment: Input in MSBs, zeros in LSBs (left shift)

Timing

Purely combinational with zero latency.