From 7b09a20c0cc737c3d108c9e981f5989d2ba1423c Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Thu, 6 Feb 2020 08:46:38 -0800 Subject: [PATCH] cmp2lcu: fail if `LUT_WIDTH < 2 --- techlibs/common/cmp2lcu.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2