aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-08 18:46:33 +0200
committerClifford Wolf <clifford@clifford.at>2018-08-08 18:46:33 +0200
commit2390f7f59c05870845da349536cb384964cdb874 (patch)
treef272acffe159ad707fc9b30f90d6e575f7a99c9a
parentfc0131ceb0e10bc5560fb84a806bbf5fe1547e47 (diff)
downloadnextpnr-2390f7f59c05870845da349536cb384964cdb874.tar.gz
nextpnr-2390f7f59c05870845da349536cb384964cdb874.tar.bz2
nextpnr-2390f7f59c05870845da349536cb384964cdb874.zip
Add ctx->settings
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r--common/nextpnr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 3d9a66ca..92880089 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -371,6 +371,9 @@ struct BaseCtx
mutable std::unordered_map<std::string, int> *idstring_str_to_idx;
mutable std::vector<const std::string *> *idstring_idx_to_str;
+ // Project settings and config switches
+ std::unordered_map<IdString, std::string> settings;
+
// Placed nets and cells.
std::unordered_map<IdString, std::unique_ptr<NetInfo>> nets;
std::unordered_map<IdString, std::unique_ptr<CellInfo>> cells;