aboutsummaryrefslogtreecommitdiffstats
path: root/demo.cc
diff options
context:
space:
mode:
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;
+}