diff options
Diffstat (limited to 'fpga_interchange/luts.h')
-rw-r--r-- | fpga_interchange/luts.h | 13 |
1 files changed, 12 insertions, 1 deletions
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<IdString> pins; pool<IdString> lut_pins; - pool<IdString> vcc_pins; + dict<IdString, PinConnection> pin_connections; DynamicBitarray<> equation; + + static const std::string nameOfPinConnection(PinConnection conn); }; struct LutBel |