gatemate: Extra error check for CLK1 strategy

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2026-06-02 12:13:09 +02:00
parent 3a3b273f06
commit 885b71e53d
1 changed files with 2 additions and 0 deletions

View File

@ -686,6 +686,8 @@ void GateMatePacker::copy_clocks()
return;
switch (uarch->strategy) {
case MultiDieStrategy::REUSE_CLK1:
if (uarch->global_signals.empty())
log_error("Unable to use REUSE CLK1 strategy when there is no clock/PLL.\n");
if (uarch->global_signals.size() > 1 || uarch->pll.size() > 1)
log_error("Unable to use REUSE CLK1 strategy when there is more than one clock/PLL.\n");
strategy_clk1();