From e89f6ae819e31103f9cd03163cd52672ec0ac472 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 3 Dec 2020 01:58:02 +0000 Subject: cxxrtl: allow customizing the root module path in the C API. --- backends/cxxrtl/cxxrtl_capi.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends/cxxrtl/cxxrtl_capi.h') diff --git a/backends/cxxrtl/cxxrtl_capi.h b/backends/cxxrtl/cxxrtl_capi.h index 662bf2c20..d67c58f94 100644 --- a/backends/cxxrtl/cxxrtl_capi.h +++ b/backends/cxxrtl/cxxrtl_capi.h @@ -52,6 +52,12 @@ typedef struct _cxxrtl_handle *cxxrtl_handle; // The `design` is consumed by this operation and cannot be used afterwards. cxxrtl_handle cxxrtl_create(cxxrtl_toplevel design); +// Create a design handle at a given hierarchy position from a design toplevel. +// +// This operation is similar to `cxxrtl_create`, except the full hierarchical name of every object +// is prepended with `root`. +cxxrtl_handle cxxrtl_create_at(cxxrtl_toplevel design, const char *root); + // Release all resources used by a design and its handle. void cxxrtl_destroy(cxxrtl_handle handle); -- cgit v1.2.3