3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

dfflegalize: Refactor, add aldff support.

This commit is contained in:
Marcelina Kościelnicka 2021-10-27 10:14:07 +02:00
parent bdf153d06c
commit 0a0df8d38c
12 changed files with 1158 additions and 1074 deletions

View file

@ -170,8 +170,23 @@ struct FfData {
// Returns a FF identical to this one, but only keeping bit indices from the argument.
FfData slice(const std::vector<int> &bits);
void unmap_ce();
void add_dummy_ce();
void add_dummy_srst();
void add_dummy_arst();
void add_dummy_aload();
void add_dummy_sr();
void add_dummy_clk();
void arst_to_aload();
void arst_to_sr();
void aload_to_sr();
// Given a FF with both has_ce and has_srst, sets ce_over_srst to the given value and
// fixes up control signals appropriately to preserve semantics.
void convert_ce_over_srst(bool val);
void unmap_ce();
void unmap_srst();
void unmap_ce_srst() {