diff options
author | David Shah <dave@ds0.me> | 2020-11-13 13:44:10 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-11-30 08:45:28 +0000 |
commit | 094bf419d4b7aa62a606b8c7bdbcfc1fc63cacf7 (patch) | |
tree | 903101e26532a05915019c82ef56df1c3822aab1 /common/design_utils.h | |
parent | 90608f2c898c179cb95fb469633867e7adc64fc4 (diff) | |
download | nextpnr-094bf419d4b7aa62a606b8c7bdbcfc1fc63cacf7.tar.gz nextpnr-094bf419d4b7aa62a606b8c7bdbcfc1fc63cacf7.tar.bz2 nextpnr-094bf419d4b7aa62a606b8c7bdbcfc1fc63cacf7.zip |
nexus: Miscellaneous DSP infrastructure
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/design_utils.h')
-rw-r--r-- | common/design_utils.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/common/design_utils.h b/common/design_utils.h index 3a2245a7..2014e7ad 100644 --- a/common/design_utils.h +++ b/common/design_utils.h @@ -104,14 +104,12 @@ void rename_port(Context *ctx, CellInfo *cell, IdString old_name, IdString new_n // Rename a net without invalidating pointers to it void rename_net(Context *ctx, NetInfo *net, IdString new_name); -// Create a bus of nets -std::vector<NetInfo *> create_bus(Context *ctx, IdString base_name, const std::string &postfix, int width); - -// Connect a bus of nets to a bus of ports -void connect_bus(Context *ctx, CellInfo *cell, IdString port, std::vector<NetInfo *> &bus, PortType dir); - 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); + NEXTPNR_NAMESPACE_END #endif |