From 887d7c717b957a16e068d082a04d5da58d3eda84 Mon Sep 17 00:00:00 2001 From: David Shah Date: Mon, 20 Jan 2020 15:20:00 +0000 Subject: nexus: Adding pin definitions Signed-off-by: David Shah --- nexus/arch.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'nexus/arch.h') 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> &pins) const; + // Get a map cell -> pin -> value _it takes_ if disconnected + void get_pins_floating_value(std::unordered_map> &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> &pins) const; + // ------------------------------------------------- NeighWireRange neigh_wire_range(WireId wire) const -- cgit v1.2.3