From baa68fa4c13b2c383f976eb22d6bfddbcb598d62 Mon Sep 17 00:00:00 2001 From: YRabbit Date: Mon, 5 Jul 2021 08:31:01 +1000 Subject: [PATCH] Parser Signed-off-by: YRabbit --- gowin/arch.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gowin/arch.cc b/gowin/arch.cc index b4c8c96f..db8bddaf 100644 --- a/gowin/arch.cc +++ b/gowin/arch.cc @@ -18,6 +18,7 @@ * */ +#include #include #include #include @@ -524,6 +525,14 @@ void Arch::read_cst(std::istream &in) } else { // IO_PORT attr=value // XXX log_info("XXX port attr found %s=%s\n", match.str(2).c_str(), match.str(3).c_str()); + std::string attr = match[2]; + std::string value = match[3]; + boost::algorithm::to_upper(attr); + boost::algorithm::to_upper(value); + it->second->attrs[id(attr)] = value; + //for (auto at : it->second->attrs) { + // std::cout << at.first.str(this) << "=" << at.second.as_string() << std::endl; + //} } } }