mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 19:21:23 +00:00
Improving vpr output support.
* Support output BLIF for Xilinx architectures. * Support using .names in BLIF for Xilinx architectures. * Use the same `NO_LUT` define in both `synth_ice40` and `synth_xilinx`.
This commit is contained in:
parent
ca39e493ba
commit
d6bdefd2e9
4 changed files with 40 additions and 7 deletions
|
@ -27,7 +27,7 @@ module \$__DFFE_NP1 (input D, C, E, R, output Q); SB_DFFNES _TECHMAP_REPLACE_ (
|
|||
module \$__DFFE_PP0 (input D, C, E, R, output Q); SB_DFFER _TECHMAP_REPLACE_ (.D(D), .Q(Q), .C(C), .E(E), .R(R)); endmodule
|
||||
module \$__DFFE_PP1 (input D, C, E, R, output Q); SB_DFFES _TECHMAP_REPLACE_ (.D(D), .Q(Q), .C(C), .E(E), .S(R)); endmodule
|
||||
|
||||
`ifndef NO_SB_LUT4
|
||||
`ifndef NO_LUT
|
||||
module \$lut (A, Y);
|
||||
parameter WIDTH = 0;
|
||||
parameter LUT = 0;
|
||||
|
|
|
@ -219,7 +219,7 @@ struct SynthIce40Pass : public ScriptPass
|
|||
run("dffsr2dff");
|
||||
if (!nodffe)
|
||||
run("dff2dffe -direct-match $_DFF_*");
|
||||
run("techmap -D NO_SB_LUT4 -map +/ice40/cells_map.v");
|
||||
run("techmap -D NO_LUT -map +/ice40/cells_map.v");
|
||||
run("opt_expr -mux_undef");
|
||||
run("simplemap");
|
||||
run("ice40_ffinit");
|
||||
|
@ -241,9 +241,9 @@ struct SynthIce40Pass : public ScriptPass
|
|||
if (check_label("map_cells"))
|
||||
{
|
||||
if (vpr)
|
||||
run("techmap -D NO_SB_LUT4 -map +/ice40/cells_map.v");
|
||||
run("techmap -D NO_LUT -map +/ice40/cells_map.v");
|
||||
else
|
||||
run("techmap -map +/ice40/cells_map.v", "(with -D NO_SB_LUT4 in vpr mode)");
|
||||
run("techmap -map +/ice40/cells_map.v", "(with -D NO_LUT in vpr mode)");
|
||||
|
||||
run("clean");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue