summaryrefslogtreecommitdiff
path: root/techlibs/common
diff options
context:
space:
mode:
Diffstat (limited to 'techlibs/common')
-rw-r--r--techlibs/common/stdcells.v16
1 files changed, 14 insertions, 2 deletions
diff --git a/techlibs/common/stdcells.v b/techlibs/common/stdcells.v
index d89b39b8..ca73f5bc 100644
--- a/techlibs/common/stdcells.v
+++ b/techlibs/common/stdcells.v
@@ -855,9 +855,15 @@ output [Y_WIDTH-1:0] Y;
) ge_via_le (
.A(B),
.B(A),
- .Y(Y)
+ .Y(Y[0])
);
+generate
+ if (Y_WIDTH > 1) begin:V
+ assign Y[Y_WIDTH-1:1] = 0;
+ end
+endgenerate
+
endmodule
// --------------------------------------------------------
@@ -882,9 +888,15 @@ output [Y_WIDTH-1:0] Y;
) gt_via_lt (
.A(B),
.B(A),
- .Y(Y)
+ .Y(Y[0])
);
+generate
+ if (Y_WIDTH > 1) begin:V
+ assign Y[Y_WIDTH-1:1] = 0;
+ end
+endgenerate
+
endmodule
// --------------------------------------------------------