mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Map to $_FF_ instead of $_DFF_P_ to prevent recursion issues
This commit is contained in:
parent
7a3c403ba0
commit
ac18a76beb
3 changed files with 15 additions and 15 deletions
|
@ -29,7 +29,7 @@ module \$_DFF_P_ (input D, C, output Q);
|
|||
`else
|
||||
wire Q_next;
|
||||
\$__ABC_FDRE #(/*.INIT(|0)*/) _TECHMAP_REPLACE_ (.D(D), .Q(Q_next), .Q_past(Q), .C(C), .CE(1'b1), .R(1'b0));
|
||||
\$_DFF_P_ abc_dff (.D(Q_next), .Q(Q), .C(C));
|
||||
\$_FF_ abc_dff (.D(Q_next), .Q(Q));
|
||||
`endif
|
||||
endmodule
|
||||
|
||||
|
|
|
@ -277,7 +277,7 @@ struct SynthXilinxPass : public ScriptPass
|
|||
if (check_label("map_cells")) {
|
||||
run("techmap -map +/techmap.v -map +/xilinx/cells_map.v");
|
||||
if (abc == "abc9")
|
||||
run("techmap -max_iter 1 -D _ABC -map +/xilinx/ff_map.v");
|
||||
run("techmap -D _ABC -map +/xilinx/ff_map.v t:$_DFF*");
|
||||
run("clean");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue