ParallelPrefixPriorityFinder constructor

ParallelPrefixPriorityFinder(
  1. Logic inp, {
  2. ParallelPrefix ppGen(
    1. List<Logic>,
    2. Logic (
      1. Logic,
      2. Logic
      )
    ) = KoggeStone.new,
  3. String name = 'parallel_prefix_finder',
})

Priority Finder constructor

Implementation

ParallelPrefixPriorityFinder(Logic inp,
    {ParallelPrefix Function(List<Logic>, Logic Function(Logic, Logic))
        ppGen = KoggeStone.new,
    super.name = 'parallel_prefix_finder'}) {
  inp = addInput('inp', inp, width: inp.width);
  final u = ParallelPrefixOrScan(inp, ppGen: ppGen);
  addOutput('out', width: inp.width) <= (u.out & ~(u.out << Const(1)));
}