aboutsummaryrefslogtreecommitdiffstats
path: root/cyclonev/arch.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-04 21:23:11 +0100
committergatecat <gatecat@ds0.me>2021-05-15 14:54:33 +0100
commitfbdcfa9c42a2a8ed69b0130fcce56644bce3c64e (patch)
treec30b711bcadd982777aee62b6030508ec36d312f /cyclonev/arch.cc
parent1cd22b81daa4c87870f65dedef74dba02adac8fe (diff)
downloadnextpnr-fbdcfa9c42a2a8ed69b0130fcce56644bce3c64e.tar.gz
nextpnr-fbdcfa9c42a2a8ed69b0130fcce56644bce3c64e.tar.bz2
nextpnr-fbdcfa9c42a2a8ed69b0130fcce56644bce3c64e.zip
cyclonev: First (untested) pass at ALM validity checking
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'cyclonev/arch.cc')
-rw-r--r--cyclonev/arch.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/cyclonev/arch.cc b/cyclonev/arch.cc
index 62acf9e2..8dd21499 100644
--- a/cyclonev/arch.cc
+++ b/cyclonev/arch.cc
@@ -210,7 +210,8 @@ std::vector<IdString> Arch::getBelPins(BelId bel) const
return pins;
}
-bool Arch::isValidBelForCellType(IdString cell_type, BelId bel) const {
+bool Arch::isValidBelForCellType(IdString cell_type, BelId bel) const
+{
// Any combinational cell type can - theoretically - be placed at a combinational ALM bel
// The precise legality mechanics will be dealt with in isBelLocationValid.
IdString bel_type = getBelType(bel);
@@ -220,7 +221,8 @@ bool Arch::isValidBelForCellType(IdString cell_type, BelId bel) const {
return bel_type == cell_type;
}
-BelBucketId Arch::getBelBucketForCellType(IdString cell_type) const {
+BelBucketId Arch::getBelBucketForCellType(IdString cell_type) const
+{
if (is_comb_cell(cell_type))
return id_MISTRAL_COMB;
else