Accelerators · Medium · SystemVerilog

8-bit Output Clamp

Convert a wide signed convolution result into an unsigned 8-bit pixel using saturation.

Task

Clamp values below zero to 0, values above 255 to 255, otherwise pass the low 8-bit value.

Examples

Constraints

Accelerator verification checklist

Concepts to review

convolution, saturation, quantization

Open 8-bit Output Clamp in the HDLForge interactive editor.

Related problems