diff options
author | David Shah <dave@ds0.me> | 2020-11-13 15:25:57 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-30 08:45:28 +0000 |
commit | 92031816257dbf76e79bce4dc9c4963824932c4d (patch) | |
tree | 002426696fcc0df545fe96502c21d69b915b6375 /common | |
parent | d9a19897c4f236906632e2d1c53bffebd3f9dacc (diff) | |
download | nextpnr-92031816257dbf76e79bce4dc9c4963824932c4d.tar.gz nextpnr-92031816257dbf76e79bce4dc9c4963824932c4d.tar.bz2 nextpnr-92031816257dbf76e79bce4dc9c4963824932c4d.zip |
nexus: Support for unclocked 9x9 multiplies
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common')
-rw-r--r-- | common/design_utils.cc | 8 | ||||
-rw-r--r-- | common/design_utils.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/common/design_utils.cc b/common/design_utils.cc index 5227585f..6cd8f0f7 100644 --- a/common/design_utils.cc +++ b/common/design_utils.cc @@ -164,12 +164,12 @@ void rename_net(Context *ctx, NetInfo *net, IdString new_name) net->name = new_name; } -void replace_bus(Context *ctx, CellInfo *old_cell, IdString old_name, int old_offset, CellInfo *new_cell, - IdString new_name, int new_offset, int width, bool square_brackets) +void replace_bus(Context *ctx, CellInfo *old_cell, IdString old_name, int old_offset, bool old_brackets, + CellInfo *new_cell, IdString new_name, int new_offset, bool new_brackets, int width) { for (int i = 0; i < width; i++) { - IdString old_port = ctx->id(stringf(square_brackets ? "%s[%d]" : "%s%d", old_name.c_str(ctx), i + old_offset)); - IdString new_port = ctx->id(stringf(square_brackets ? "%s[%d]" : "%s%d", new_name.c_str(ctx), i + new_offset)); + IdString old_port = ctx->id(stringf(old_brackets ? "%s[%d]" : "%s%d", old_name.c_str(ctx), i + old_offset)); + IdString new_port = ctx->id(stringf(new_brackets ? "%s[%d]" : "%s%d", new_name.c_str(ctx), i + new_offset)); replace_port(old_cell, old_port, new_cell, new_port); } } diff --git a/common/design_utils.h b/common/design_utils.h index 2014e7ad..9d4b0550 100644 --- a/common/design_utils.h +++ b/common/design_utils.h @@ -107,8 +107,8 @@ void rename_net(Context *ctx, NetInfo *net, IdString new_name); void print_utilisation(const Context *ctx); // Disconnect a bus of nets (if connected) from old, and connect it to the new ports -void replace_bus(Context *ctx, CellInfo *old_cell, IdString old_name, int old_offset, CellInfo *new_cell, - IdString new_name, int new_offset, int new_width, bool square_brackets = true); +void replace_bus(Context *ctx, CellInfo *old_cell, IdString old_name, int old_offset, bool old_brackets, + CellInfo *new_cell, IdString new_name, int new_offset, bool new_brackets, int width); NEXTPNR_NAMESPACE_END |