diff options
author | whitequark <whitequark@whitequark.org> | 2020-12-02 23:35:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 23:35:54 +0000 |
commit | 98f7b435b0b7bdf9f2beb0ee9cc561afb39a619c (patch) | |
tree | 9eab3cb2f4156d555750daf1c5a8c8fb1873252f /backends/cxxrtl/cxxrtl_capi.cc | |
parent | 90724ea9e7bc5872dd8412521399221722756c4e (diff) | |
parent | 5beab5bc17f9fa1f2340b491e073cfb973ad2e2b (diff) | |
download | yosys-98f7b435b0b7bdf9f2beb0ee9cc561afb39a619c.tar.gz yosys-98f7b435b0b7bdf9f2beb0ee9cc561afb39a619c.tar.bz2 yosys-98f7b435b0b7bdf9f2beb0ee9cc561afb39a619c.zip |
Merge pull request #2466 from whitequark/cxxrtl-reset
cxxrtl: provide a way to perform unobtrusive power-on reset
Diffstat (limited to 'backends/cxxrtl/cxxrtl_capi.cc')
-rw-r--r-- | backends/cxxrtl/cxxrtl_capi.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/cxxrtl/cxxrtl_capi.cc b/backends/cxxrtl/cxxrtl_capi.cc index b77e4c491..1c3c63e3e 100644 --- a/backends/cxxrtl/cxxrtl_capi.cc +++ b/backends/cxxrtl/cxxrtl_capi.cc @@ -43,6 +43,10 @@ void cxxrtl_destroy(cxxrtl_handle handle) { delete handle; } +void cxxrtl_reset(cxxrtl_handle handle) { + handle->module->reset(); +} + int cxxrtl_eval(cxxrtl_handle handle) { return handle->module->eval(); } |