aboutsummaryrefslogtreecommitdiffstats
path: root/nexus/arch.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2020-01-20 15:20:00 +0000
committerDavid Shah <dave@ds0.me>2020-11-30 08:45:27 +0000
commit887d7c717b957a16e068d082a04d5da58d3eda84 (patch)
tree1a3ad39bd4282e33bf955b9e34ddc1963c37ca6d /nexus/arch.h
parent46010f33ad1ffa1d1b7f6ec053fcb9c3596e514a (diff)
downloadnextpnr-887d7c717b957a16e068d082a04d5da58d3eda84.tar.gz
nextpnr-887d7c717b957a16e068d082a04d5da58d3eda84.tar.bz2
nextpnr-887d7c717b957a16e068d082a04d5da58d3eda84.zip
nexus: Adding pin definitions
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'nexus/arch.h')
-rw-r--r--nexus/arch.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/nexus/arch.h b/nexus/arch.h
index f787c2b3..29acc5f5 100644
--- a/nexus/arch.h
+++ b/nexus/arch.h
@@ -1271,6 +1271,18 @@ struct Arch : BaseCtx
int wire = pip_data(pip).to_wire;
return db->loctypes[chip_info->grid[pip.tile].loc_type].wires[wire].name;
}
+
+ // -------------------------------------------------
+
+ // Get a map cell type -> pins that can be inverted
+ void get_invertible_pins(std::unordered_map<IdString, std::unordered_set<IdString>> &pins) const;
+ // Get a map cell -> pin -> value _it takes_ if disconnected
+ void get_pins_floating_value(std::unordered_map<IdString, std::unordered_map<IdString, bool>> &pins) const;
+ // Get a map cell -> pin -> value _it must be connected to_ if disconnected
+ // Default value for all pins, if not specified is 0
+ void
+ get_pins_default_value(std::unordered_map<IdString, std::unordered_map<IdString, Property::State>> &pins) const;
+
// -------------------------------------------------
NeighWireRange neigh_wire_range(WireId wire) const