From f0d4e4fbc3847635e0f6151a9eda52b7fb952c19 Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 2 May 2022 09:56:36 +0100 Subject: generic: Add some extra helpers for viaduct uarches Signed-off-by: gatecat --- generic/viaduct_helpers.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'generic/viaduct_helpers.h') diff --git a/generic/viaduct_helpers.h b/generic/viaduct_helpers.h index cac22304..213995db 100644 --- a/generic/viaduct_helpers.h +++ b/generic/viaduct_helpers.h @@ -58,13 +58,15 @@ struct ViaductHelpers Context *ctx; void init(Context *ctx) { this->ctx = ctx; } // IdStringList components for x and y locations - std::vector x_ids, y_ids; - void resize_ids(int x, int y); + std::vector x_ids, y_ids, z_ids; + void resize_ids(int x, int y, int z = 0); // Get an IdStringList for a hierarchical ID // Because this uses an IdStringList with seperate X and Y components; this will be much more efficient than // creating unique strings for each object in each X and Y position IdStringList xy_id(int x, int y, IdString base); IdStringList xy_id(int x, int y, IdStringList base); + IdStringList xyz_id(int x, int y, int z, IdString base); + IdStringList xyz_id(int x, int y, int z, IdStringList base); // Common packing functions // Remove nextpnr-inserted IO buffers; where IO buffer insertion is done in synthesis // expects a set of top-level port types -- cgit v1.2.3