← All problems

Trailing Zeros

Easy · Combinational · SystemVerilog

Design a model that detects the number of trailing 0s in the binary representation of the input {din}. If the input value is all 0s, the number of trailing 0s is the data width {DATA_WIDTH}.

Open this challenge in the editor →