From 627e7ea547a54f36db364b92f72a702092faab90 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Tue, 20 Jan 2026 14:28:47 +1000 Subject: [PATCH] Gowin. Ignore empty lines. Including those containing nothing but spaces and tabs. Fixes https://github.com/YosysHQ/apicula/issues/432 Signed-off-by: YRabbit --- himbaechel/uarch/gowin/cst.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/himbaechel/uarch/gowin/cst.cc b/himbaechel/uarch/gowin/cst.cc index c9097850..ca4ad496 100644 --- a/himbaechel/uarch/gowin/cst.cc +++ b/himbaechel/uarch/gowin/cst.cc @@ -112,6 +112,11 @@ struct GowinCstReader while (!in.eof()) { std::getline(in, line); + boost::trim_right(line); + if (line.empty()) { + continue; + } + cst_type = ioloc; if (!std::regex_match(line, match, iobre)) { if (std::regex_match(line, match, portre)) {