run("design -stash $abc9_map");
run("design -load $abc9");
run("design -delete $abc9");
- run("techmap -wb -max_iter 1 -map %$abc9_map -map +/abc9_map.v");
+ if (help_mode)
+ run("techmap -wb -max_iter 1 -map %$abc9_map -map +/abc9_map.v [-D DFF]", "(option if -dff)");
+ else
+ run(stringf("techmap -wb -max_iter 1 -map %$abc9_map -map +/abc9_map.v %s", dff_mode ? "-D DFF" : ""));
run("design -delete $abc9_map");
}
+`ifdef DFF
(* techmap_celltype = "$_DFF_N_ $_DFF_P_" *)
module $_DFF_x_(input C, D, output Q);
parameter [0:0] _TECHMAP_WIREINIT_Q_ = 1'bx;
$error("Unrecognised _TECHMAP_CELLTYPE_");
endgenerate
endmodule
+`endif