3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-13 04:28:18 +00:00

cmp2lut: comment out unused since 362f4f9

This commit is contained in:
Eddie Hung 2020-01-17 10:21:22 -08:00
parent 37f42fe102
commit fffe42d4c1

View file

@ -57,10 +57,10 @@ function automatic [(1 << `LUT_WIDTH)-1:0] gen_lut;
o_bit = (lhs > rhs); o_bit = (lhs > rhs);
if (operation == 3) if (operation == 3)
o_bit = (lhs >= rhs); o_bit = (lhs >= rhs);
if (operation == 4) // if (operation == 4)
o_bit = (lhs == rhs); // o_bit = (lhs == rhs);
if (operation == 5) // if (operation == 5)
o_bit = (lhs != rhs); // o_bit = (lhs != rhs);
gen_lut = gen_lut | (o_bit << n); gen_lut = gen_lut | (o_bit << n);
end end
end end
@ -75,10 +75,10 @@ generate
localparam operation = 2; localparam operation = 2;
if (_TECHMAP_CELLTYPE_ == "$ge") if (_TECHMAP_CELLTYPE_ == "$ge")
localparam operation = 3; localparam operation = 3;
if (_TECHMAP_CELLTYPE_ == "$eq") // if (_TECHMAP_CELLTYPE_ == "$eq")
localparam operation = 4; // localparam operation = 4;
if (_TECHMAP_CELLTYPE_ == "$ne") // if (_TECHMAP_CELLTYPE_ == "$ne")
localparam operation = 5; // localparam operation = 5;
if (A_WIDTH > `LUT_WIDTH || B_WIDTH > `LUT_WIDTH || Y_WIDTH != 1) if (A_WIDTH > `LUT_WIDTH || B_WIDTH > `LUT_WIDTH || Y_WIDTH != 1)
wire _TECHMAP_FAIL_ = 1; wire _TECHMAP_FAIL_ = 1;