yaqiz01 / pir

GNU General Public License v3.0
2 stars 0 forks source link

Predication support in CtrlBox #34

Closed yaqiz01 closed 6 years ago

yaqiz01 commented 7 years ago

Add predication unit in ctrlbox to support data dependent pop on fifo. Currently assume each PCU has two such predication unit dedicated for accumulation and fifo that are hardwired. If more needed change this to a pool of predication units that can be mapped. The predication has # inputs = # counters. And output of the predication unit is

(inputs, ops, consts, masks).zip { case (ctr, op, const, mask) => mask || (ctr op const) }.reduce { _ & _ }