aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-07-11 17:02:13 +0200
committerClifford Wolf <clifford@clifford.at>2018-07-11 17:02:13 +0200
commit2a01b5e4d326f697636c592b7589080f88d5fa2c (patch)
treef60b418f42dacb7cc08a8b62cab6c201d2fddf9e /common
parent77818f53bd7cb866d7d8404bb176b21c142f0fa2 (diff)
downloadnextpnr-2a01b5e4d326f697636c592b7589080f88d5fa2c.tar.gz
nextpnr-2a01b5e4d326f697636c592b7589080f88d5fa2c.tar.bz2
nextpnr-2a01b5e4d326f697636c592b7589080f88d5fa2c.zip
New refreshUi API
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
-rw-r--r--common/nextpnr.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index bf3a5c28..856d8993 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -259,6 +259,39 @@ struct BaseCtx
delete idstring_str_to_idx;
delete idstring_idx_to_str;
}
+
+ // --------------------------------------------------------------
+
+ bool allUiReload = false;
+ bool frameUiReload = false;
+ std::unordered_set<BelId> belUiReload;
+ std::unordered_set<WireId> wireUiReload;
+ std::unordered_set<PipId> pipUiReload;
+
+ void refreshUi()
+ {
+ allUiReload = true;
+ }
+
+ void refreshUiFrame()
+ {
+ frameUiReload = true;
+ }
+
+ void refreshUiBel(BelId bel)
+ {
+ belUiReload.insert(bel);
+ }
+
+ void refreshUiWire(WireId wire)
+ {
+ wireUiReload.insert(wire);
+ }
+
+ void refreshUiPip(PipId pip)
+ {
+ pipUiReload.insert(pip);
+ }
};
NEXTPNR_NAMESPACE_END