From: Eddie Hung Date: Thu, 6 Feb 2020 16:46:38 +0000 (-0800) Subject: cmp2lcu: fail if `LUT_WIDTH < 2 X-Git-Tag: working-ls180~695^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b09a20c0cc737c3d108c9e981f5989d2ba1423c;p=yosys.git cmp2lcu: fail if `LUT_WIDTH < 2 --- 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