NthOne
按从低位到高位的顺序选择第 n 个 1,输出命中、onehot 与索引。
0.0.1
0.0.1: 第一版
- 输入向量宽度 (inputWidth)
- 输入与 onehot 输出的位宽,必须大于 2 且不超过 32 bit。 type: IntRange default: 8 min: 3 max: 32
- 查找序号(从 0 开始) (n)
- 从最低位向高位查找第 n 个 1,必须满足 0≤n<ceil(inputWidth/2);此值在生成时固定。 type: IntRange default: 0 min: 0 max: 15