From aafe1a176c821a3919e773b57ac08fb348c91597 Mon Sep 17 00:00:00 2001 From: Maciej Kurc Date: Thu, 28 Apr 2022 17:18:26 +0200 Subject: Generalized representation of unused LUT pins connections Signed-off-by: Maciej Kurc --- fpga_interchange/luts.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'fpga_interchange/luts.h') diff --git a/fpga_interchange/luts.h b/fpga_interchange/luts.h index 8f33507a..892f457c 100644 --- a/fpga_interchange/luts.h +++ b/fpga_interchange/luts.h @@ -42,11 +42,22 @@ enum LogicLevel struct LutCell { + enum class PinConnection + { + Unconnected, + Gnd, + Vcc, + Const, + Signal + }; + // LUT cell pins for equation, LSB first. std::vector pins; pool lut_pins; - pool vcc_pins; + dict pin_connections; DynamicBitarray<> equation; + + static const std::string nameOfPinConnection(PinConnection conn); }; struct LutBel -- cgit v1.2.3