diff options
author | whitequark <whitequark@whitequark.org> | 2020-12-03 02:35:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 02:35:23 +0000 |
commit | 13a270555be2965b7204872ca60e030b6573accc (patch) | |
tree | 631f2c895b03129347de7591ec0b3a0ce96fca78 /backends/cxxrtl/cxxrtl_capi.h | |
parent | 5a15307926a5984737615a9767c55a11dfb53562 (diff) | |
parent | e89f6ae819e31103f9cd03163cd52672ec0ac472 (diff) | |
download | yosys-13a270555be2965b7204872ca60e030b6573accc.tar.gz yosys-13a270555be2965b7204872ca60e030b6573accc.tar.bz2 yosys-13a270555be2965b7204872ca60e030b6573accc.zip |
Merge pull request #2470 from whitequark/cxxrtl-create_at
cxxrtl: allow customizing the root module path in the C API
Diffstat (limited to 'backends/cxxrtl/cxxrtl_capi.h')
-rw-r--r-- | backends/cxxrtl/cxxrtl_capi.h | 6 |
1 files changed, 6 insertions, 0 deletions
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); |