mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-22 04:12:06 +00:00
cxxrtl: allow customizing the root module path in the C API.
This commit is contained in:
parent
5a15307926
commit
e89f6ae819
2 changed files with 20 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue