From fbdcfa9c42a2a8ed69b0130fcce56644bce3c64e Mon Sep 17 00:00:00 2001 From: gatecat Date: Tue, 4 May 2021 21:23:11 +0100 Subject: cyclonev: First (untested) pass at ALM validity checking Signed-off-by: gatecat --- cyclonev/arch.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cyclonev/arch.cc') 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 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 -- cgit v1.2.3