diff --git a/techlibs/common/cmp2lcu.v b/techlibs/common/cmp2lcu.v index b302d592f..b4fadaaad 100644 --- a/techlibs/common/cmp2lcu.v +++ b/techlibs/common/cmp2lcu.v @@ -19,7 +19,7 @@ output [Y_WIDTH-1:0] Y; parameter _TECHMAP_CELLTYPE_ = ""; generate - if (_TECHMAP_CELLTYPE_ == "") + if (_TECHMAP_CELLTYPE_ == "" || `LUT_WIDTH < 2) wire _TECHMAP_FAIL_ = 1; else if (_TECHMAP_CELLTYPE_ == "$lt") begin // Transform $lt into $gt by swapping A and B