3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-22 05:43:40 +00:00

cxxrtl: expose eval() and commit() via the C API.

This commit is contained in:
whitequark 2020-07-12 23:34:18 +00:00
parent 347dd01c2f
commit 5349a922e4
2 changed files with 20 additions and 0 deletions

View file

@ -43,6 +43,14 @@ void cxxrtl_destroy(cxxrtl_handle handle) {
delete handle;
}
int cxxrtl_eval(cxxrtl_handle handle) {
return handle->module->eval();
}
int cxxrtl_commit(cxxrtl_handle handle) {
return handle->module->commit();
}
size_t cxxrtl_step(cxxrtl_handle handle) {
return handle->module->step();
}