3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Merge remote-tracking branch 'origin/master' into xaig_dff

This commit is contained in:
Eddie Hung 2019-11-25 12:42:09 -08:00
commit d087024caf
10 changed files with 83 additions and 18 deletions

View file

@ -194,8 +194,6 @@ struct SynthCoolrunner2Pass : public ScriptPass
if (!json_file.empty() || help_mode)
run(stringf("write_json %s", help_mode ? "<file-name>" : json_file.c_str()));
}
log_pop();
}
} SynthCoolrunner2Pass;

View file

@ -126,7 +126,11 @@ endmodule
// assign O = IO, IO = T ? 1'bz : I;
// endmodule
module INV(output O, input I);
module INV(
(* clkbuf_inv = "I" *)
output O,
input I
);
assign O = !I;
endmodule

View file

@ -56,8 +56,12 @@ module \$lut (A, Y);
generate
if (WIDTH == 1) begin
LUT1 #(.INIT(P_LUT)) _TECHMAP_REPLACE_ (.O(Y),
.I0(A[0]));
if (P_LUT == 2'b01) begin
INV _TECHMAP_REPLACE_ (.O(Y), .I(A[0]));
end else begin
LUT1 #(.INIT(P_LUT)) _TECHMAP_REPLACE_ (.O(Y),
.I0(A[0]));
end
end else
if (WIDTH == 2) begin
LUT2 #(.INIT(P_LUT)) _TECHMAP_REPLACE_ (.O(Y),