diff options
Diffstat (limited to 'nexus/arch.h')
-rw-r--r-- | nexus/arch.h | 12 |
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 |