From 20d33dd07ba056a1e2acfb8240e8e4d48568677d Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Mon, 3 Jun 2024 10:41:03 +0300 Subject: [PATCH] ecp5: print device utilisation from pnr. --- .../ee/hrzn/chryse/platform/ecp5/ECP5Platform.scala | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/scala/ee/hrzn/chryse/platform/ecp5/ECP5Platform.scala b/src/main/scala/ee/hrzn/chryse/platform/ecp5/ECP5Platform.scala index cfe78aa..1b1baae 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/ecp5/ECP5Platform.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/ecp5/ECP5Platform.scala @@ -85,7 +85,14 @@ trait ECP5Platform { this: PlatformBoard[_ <: PlatformBoardResources] => ) runCu(CmdStepPNR, textcfgCu) - // TODO (ECP5): print statistics like ICE40Platform. + println() + println("Device utilisation:") + logFileBetween( + nextpnrLogPath, + raw"Info: Device utilisation:".r, + raw"Info: Placed .*".r, + Some("Info: "), + ) val bitPath = s"$buildDir/${platform.id}/$name.bit" val svfPath = s"$buildDir/${platform.id}/$name.svf"