From 5b181c32d77cb1e8a37c4e2ef9781435b0ff926e Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Thu, 23 May 2024 22:46:52 +0300 Subject: [PATCH] chrysetop is our name, not theirs. --- src/main/scala/ee/hrzn/chryse/platform/ice40/ICE40Top.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/scala/ee/hrzn/chryse/platform/ice40/ICE40Top.scala b/src/main/scala/ee/hrzn/chryse/platform/ice40/ICE40Top.scala index e089a17..6b012b7 100644 --- a/src/main/scala/ee/hrzn/chryse/platform/ice40/ICE40Top.scala +++ b/src/main/scala/ee/hrzn/chryse/platform/ice40/ICE40Top.scala @@ -50,6 +50,8 @@ class ICE40Top[Top <: Module]( private val top = withClockAndReset(clk, finalReset)(Module(genTop)) + if (top.desiredName == desiredName) + throw new IllegalArgumentException(s"user top is called $desiredName") // TODO (iCE40): allow clock source override.