Granularity .3f only in report for kGates (#2820)
Some checks are pending
bender-up-to-date / bender-up-to-date (push) Waiting to run
ci / build-riscv-tests (push) Waiting to run
ci / execute-riscv64-tests (push) Blocked by required conditions
ci / execute-riscv32-tests (push) Blocked by required conditions

Changing the type of Kgates from int to float in order to add more granularity on the report (usefull when the difference is under 1k Gates)

Co-authored-by: JeanRochCoulon <jean-roch.coulon@thalesgroup.com>
This commit is contained in:
MaxCThales 2025-03-11 21:39:51 +01:00 committed by GitHub
parent 028ce43fce
commit f984dc347f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,7 +82,7 @@ hier_metric = rb.TableMetric('Hierarchies details')
for i in hier:
hier_metric.add_value(
i[0], # hier
f"{int(float(i[1])/kgate_ratio)} kGates", # area
f"{float(i[1])/kgate_ratio:.3f} kGates", # area
f"{int(float(i[2]))} %", # %
#int(float(i[3]))/int(float(i[1])*100), # % combi
#int(float(i[4]))/int(float(i[1])*100), # % reg