Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 20d33dd

Browse files
committed
ecp5: print device utilisation from pnr.
1 parent 8f7a15a commit 20d33dd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/scala/ee/hrzn/chryse/platform/ecp5/ECP5Platform.scala

+8-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,14 @@ trait ECP5Platform { this: PlatformBoard[_ <: PlatformBoardResources] =>
8585
)
8686
runCu(CmdStepPNR, textcfgCu)
8787

88-
// TODO (ECP5): print statistics like ICE40Platform.
88+
println()
89+
println("Device utilisation:")
90+
logFileBetween(
91+
nextpnrLogPath,
92+
raw"Info: Device utilisation:".r,
93+
raw"Info: Placed .*".r,
94+
Some("Info: "),
95+
)
8996

9097
val bitPath = s"$buildDir/${platform.id}/$name.bit"
9198
val svfPath = s"$buildDir/${platform.id}/$name.svf"

0 commit comments

Comments
 (0)