generate
if (WIDTH == 1) begin
- CFG1 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.O(Y), .A(A[0]));
+ CFG1 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.Y(Y), .A(A[0]));
end else
if (WIDTH == 2) begin
- CFG2 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.O(Y), .A(A[0]), .B(A[1]));
+ CFG2 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.Y(Y), .A(A[0]), .B(A[1]));
end else
if (WIDTH == 3) begin
- CFG3 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.O(Y), .A(A[0]), .B(A[1]), .C(A[2]));
+ CFG3 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.Y(Y), .A(A[0]), .B(A[1]), .C(A[2]));
end else
if (WIDTH == 4) begin
- CFG4 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.O(Y), .A(A[0]), .B(A[1]), .C(A[2]), .D(A[3]));
+ CFG4 #(.INIT(LUT)) _TECHMAP_REPLACE_ (.Y(Y), .A(A[0]), .B(A[1]), .C(A[2]), .D(A[3]));
end else begin
wire _TECHMAP_FAIL_ = 1;
end
endmodule
module CFG1 (
- output O,
+ output Y,
input A
);
parameter [1:0] INIT = 2'h0;
- assign O = INIT >> A;
+ assign Y = INIT >> A;
endmodule
module CFG2 (
- output O,
+ output Y,
input A,
input B
);
parameter [3:0] INIT = 4'h0;
- assign O = INIT >> {B, A};
+ assign Y = INIT >> {B, A};
endmodule
module CFG3 (
- output O,
+ output Y,
input A,
input B,
input C
);
parameter [7:0] INIT = 8'h0;
- assign O = INIT >> {C, B, A};
+ assign Y = INIT >> {C, B, A};
endmodule
module CFG4 (
- output O,
+ output Y,
input A,
input B,
input C,
input D
);
parameter [15:0] INIT = 16'h0;
- assign O = INIT >> {D, C, B, A};
+ assign Y = INIT >> {D, C, B, A};
endmodule