aboutsummaryrefslogtreecommitdiffstats
path: root/dummy
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-06-12 14:43:56 +0200
committerDavid Shah <davey1576@gmail.com>2018-06-12 14:43:56 +0200
commit592a627e0c99ddf2cf06c286813a2d08962d8cd9 (patch)
tree5da4e6d6c4bfdb3d5a600b365ed9cb856c307de9 /dummy
parent5a9ff4aea15fca7bcf8c86eaa1f92eb51f551e5b (diff)
parentc8b815361e2435bf12786705638908aa891df44f (diff)
downloadnextpnr-592a627e0c99ddf2cf06c286813a2d08962d8cd9.tar.gz
nextpnr-592a627e0c99ddf2cf06c286813a2d08962d8cd9.tar.bz2
nextpnr-592a627e0c99ddf2cf06c286813a2d08962d8cd9.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'dummy')
-rw-r--r--dummy/arch_place.cc4
-rw-r--r--dummy/arch_place.h4
-rw-r--r--dummy/chip.cc4
-rw-r--r--dummy/chip.h4
-rw-r--r--dummy/main.cc2
-rw-r--r--dummy/pybindings.cc4
6 files changed, 22 insertions, 0 deletions
diff --git a/dummy/arch_place.cc b/dummy/arch_place.cc
index e41b8cc3..15f813ae 100644
--- a/dummy/arch_place.cc
+++ b/dummy/arch_place.cc
@@ -19,7 +19,11 @@
#include "arch_place.h"
+NEXTPNR_NAMESPACE_BEGIN
+
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel)
{
return true;
}
+
+NEXTPNR_NAMESPACE_END
diff --git a/dummy/arch_place.h b/dummy/arch_place.h
index 446396e9..66789b7d 100644
--- a/dummy/arch_place.h
+++ b/dummy/arch_place.h
@@ -22,6 +22,8 @@
#include "nextpnr.h"
+NEXTPNR_NAMESPACE_BEGIN
+
// Architecure-specific placement functions
// Whether or not a given cell can be placed at a given Bel
@@ -29,4 +31,6 @@
// such as conflicting set/reset signals, etc
bool isValidBelForCell(Design *design, CellInfo *cell, BelId bel);
+NEXTPNR_NAMESPACE_END
+
#endif
diff --git a/dummy/chip.cc b/dummy/chip.cc
index 0e23a20a..23aa0e9d 100644
--- a/dummy/chip.cc
+++ b/dummy/chip.cc
@@ -19,6 +19,8 @@
#include "nextpnr.h"
+NEXTPNR_NAMESPACE_BEGIN
+
Chip::Chip(ChipArgs) {}
std::string Chip::getChipName() { return "Dummy"; }
@@ -156,3 +158,5 @@ std::vector<GraphicElement> Chip::getFrameGraphics() const
static std::vector<GraphicElement> ret;
return ret;
}
+
+NEXTPNR_NAMESPACE_END
diff --git a/dummy/chip.h b/dummy/chip.h
index 274f0e8e..e5a6dd56 100644
--- a/dummy/chip.h
+++ b/dummy/chip.h
@@ -24,6 +24,8 @@
#error Include "chip.h" via "nextpnr.h" only.
#endif
+NEXTPNR_NAMESPACE_BEGIN
+
struct DelayInfo
{
float delay = 0;
@@ -116,4 +118,6 @@ struct Chip
std::vector<GraphicElement> getFrameGraphics() const;
};
+NEXTPNR_NAMESPACE_END
+
#endif
diff --git a/dummy/main.cc b/dummy/main.cc
index df5333ca..3b9e6ba3 100644
--- a/dummy/main.cc
+++ b/dummy/main.cc
@@ -23,6 +23,8 @@
#include "mainwindow.h"
#include "nextpnr.h"
+USING_NEXTPNR_NAMESPACE
+
int main(int argc, char *argv[])
{
Design design(ChipArgs{});
diff --git a/dummy/pybindings.cc b/dummy/pybindings.cc
index a0b6322e..ec0e20b2 100644
--- a/dummy/pybindings.cc
+++ b/dummy/pybindings.cc
@@ -21,4 +21,8 @@
#include "pybindings.h"
#include "nextpnr.h"
+NEXTPNR_NAMESPACE_BEGIN
+
void arch_wrap_python() { class_<ChipArgs>("ChipArgs"); }
+
+NEXTPNR_NAMESPACE_END