1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-04-28 21:18:09 +00:00
Files
antonblanchard.microwatt/countzero.vhdl
Anton Blanchard 1b559aee31 Fix count-leading/trailing-zeroes
The current code simulates correctly, but produces miscompares when synthesized
onto an FPGA. On closer inspection GHDL synthesis complains about inferred
latches and there does seem to be issues.

Convert it to variables that are always initialized to zero at the start of the
process.

Fixes: 24a4a796ce ("execute: Consolidate count-leading/trailing-zeroes implementations")
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
2019-10-10 16:05:34 +11:00

2.7 KiB