ecp5: Fix double-counting of FFs in report

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2022-03-16 15:44:45 +00:00
parent c278a29a38
commit 2635bab2f1

View File

@ -85,7 +85,7 @@ class Ecp5Packer
used_ramwluts += 2;
}
if (is_ff(ctx, ci))
used_ffs += 2;
++used_ffs;
}
log_info("Logic utilisation before packing:\n");
auto pc = [](int used, int total) { return 100 * used / total; };