aboutsummaryrefslogtreecommitdiffstats
path: root/ice40
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-14 18:50:29 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-14 18:50:29 +0100
commitd4a0feb1adb05b8b086422021cde152289e591a7 (patch)
treeb3c2c800af28be09a988b53cba8c9ce0d233beb6 /ice40
parentade67ecf21c274c73c99543e51eda99ac847686c (diff)
downloadnextpnr-d4a0feb1adb05b8b086422021cde152289e591a7.tar.gz
nextpnr-d4a0feb1adb05b8b086422021cde152289e591a7.tar.bz2
nextpnr-d4a0feb1adb05b8b086422021cde152289e591a7.zip
Revert "Add read/mutate context stubs for ECP5"
This reverts commit f333a68753655a4ccf7da9a4da96e7fdd19f9d08.
Diffstat (limited to 'ice40')
-rw-r--r--ice40/arch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ice40/arch.h b/ice40/arch.h
index cdee92e4..f41990c3 100644
--- a/ice40/arch.h
+++ b/ice40/arch.h
@@ -345,6 +345,7 @@ class Arch : public BaseCtx
friend class ArchReadMethods;
private:
+ // All of the following...
std::vector<IdString> bel_to_cell;
std::vector<IdString> wire_to_net;
std::vector<IdString> pip_to_net;
@@ -632,12 +633,15 @@ class ArchReadMethods : public BaseReadCtx
ArchReadMethods(const ArchReadMethods &other) : ArchReadMethods(other.parent_) {}
/// Perform placement validity checks, returning false on failure (all implemented in arch_place.cc)
+
// Whether or not a given cell can be placed at a given Bel
// This is not intended for Bel type checks, but finer-grained constraints
// such as conflicting set/reset signals, etc
bool isValidBelForCell(CellInfo *cell, BelId bel) const;
+
// Return true whether all Bels at a given location are valid
bool isBelLocationValid(BelId bel) const;
+
// Helper function for above
bool logicCellsCompatible(const std::vector<const CellInfo *> &cells) const;