From cc45f5ec48ff90b9685ac0bc7cc9309188a582ff Mon Sep 17 00:00:00 2001 From: YRabbit Date: Thu, 19 Jan 2023 07:12:39 +1000 Subject: [PATCH] gowin: improve error message Signed-off-by: YRabbit --- gowin/pack.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gowin/pack.cc b/gowin/pack.cc index e1372c47..1ebd5315 100644 --- a/gowin/pack.cc +++ b/gowin/pack.cc @@ -1036,7 +1036,8 @@ static void pack_plls(Context *ctx) if (is_pll(ctx, ci)) { std::string parm_device = str_or_default(ci->params, id_DEVICE, "GW1N-1"); if (parm_device != ctx->device) { - log_error("Wrong PLL device:%s instead of %s\n", parm_device.c_str(), ctx->device.c_str()); + log_error("Cell '%s': wrong PLL device:%s instead of %s\n", ctx->nameOf(ci), parm_device.c_str(), + ctx->device.c_str()); continue; }