VexRiscv icon indicating copy to clipboard operation
VexRiscv copied to clipboard

Mul/Div don't work if withWriteBackStage or withMemoryStage is false

Open xobs opened this issue 5 years ago • 1 comments

The MulPlugin, DivPlugin, and MulDivIterativePlugin all require that withWriteBackStage = true and withMemoryStage = true. This can make it difficult to shrink the core, especially since the MulPlugin ought to be inferred to a DSP block.

Is it difficult to adapt plugins to work with shorter pipelines?

xobs avatar Mar 13 '19 18:03 xobs

Right,

It is mainly due to the fact that they were implemented before the withWriteBackStage and withMemoryStage options existed. So both exploited as much stages as possible to improve timings.

For both MulPlugin and MulDivIterativePlugin, it would not be an big issue to fix that. Todo :D

Dolu1990 avatar Mar 13 '19 21:03 Dolu1990