aboutsummaryrefslogtreecommitdiffstats
path: root/demo.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-05-23 17:58:57 +0200
committerClifford Wolf <clifford@clifford.at>2018-05-23 17:58:57 +0200
commit22558704460b19425d28cc91b2565c7964ed7a19 (patch)
tree600f3477c33837df80ad4a114017fdee8f953de0 /demo.cc
parentdaa48858201d1f4851efcb6754e44b95e8fae656 (diff)
downloadnextpnr-22558704460b19425d28cc91b2565c7964ed7a19.tar.gz
nextpnr-22558704460b19425d28cc91b2565c7964ed7a19.tar.bz2
nextpnr-22558704460b19425d28cc91b2565c7964ed7a19.zip
Create compile-able demo that doesn't do anything
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'demo.cc')
-rw-r--r--demo.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/demo.cc b/demo.cc
new file mode 100644
index 00000000..3a5ca0c0
--- /dev/null
+++ b/demo.cc
@@ -0,0 +1,13 @@
+// clang -o demo -Wall -std=c++11 demo.cc database.cc -lstdc++
+
+#include "database.h"
+
+int main()
+{
+ Design design("default");
+
+ for (auto bel : design.chip.getBels())
+ printf("%s\n", design.chip.getObjName(bel).c_str());
+
+ return 0;
+}