From 3afce5ff5a6adfa1baccb4f4625005300b9a3862 Mon Sep 17 00:00:00 2001 From: David Shah Date: Sun, 17 Jun 2018 11:45:41 +0200 Subject: Improving the placer output Signed-off-by: David Shah --- ice40/arch_place.cc | 3 ++- ice40/main.cc | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'ice40') diff --git a/ice40/arch_place.cc b/ice40/arch_place.cc index 83dd63aa..ceb6f07f 100644 --- a/ice40/arch_place.cc +++ b/ice40/arch_place.cc @@ -80,7 +80,8 @@ static bool logicCellsCompatible(const std::vector &cells) return locals.size() <= 32; } -bool isBelLocationValid(Design *design, BelId bel) { +bool isBelLocationValid(Design *design, BelId bel) +{ const Chip &chip = design->chip; if (chip.getBelType(bel) == TYPE_ICESTORM_LC) { std::vector cells; diff --git a/ice40/main.cc b/ice40/main.cc index 4917574d..3cd97f48 100644 --- a/ice40/main.cc +++ b/ice40/main.cc @@ -35,6 +35,7 @@ #include "pybindings.h" #include "route.h" #include "version.h" +#include "design_utils.h" void svg_dump_el(const GraphicElement &el) { @@ -221,6 +222,7 @@ int main(int argc, char *argv[]) } pack_design(&design); + print_utilisation(&design); if (!vm.count("pack-only")) { place_design_sa(&design); route_design(&design, verbose); -- cgit v1.2.3