https://github.com/juliacomputing/cxxrtlcosim
Cosimulation of ModelingToolkit and Cxxrtl
https://github.com/juliacomputing/cxxrtlcosim
Last synced: about 1 month ago
JSON representation
Cosimulation of ModelingToolkit and Cxxrtl
- Host: GitHub
- URL: https://github.com/juliacomputing/cxxrtlcosim
- Owner: JuliaComputing
- License: mit
- Created: 2021-09-15T13:29:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-16T10:07:43.000Z (about 4 years ago)
- Last Synced: 2025-02-23T21:33:15.383Z (9 months ago)
- Language: Julia
- Size: 7.81 KB
- Stars: 5
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CxxrtlCosim
Cosimulation of ModelingToolkit.jl and cxxrtl
This project is a Julia interface to Yosys's cxxrtl C API, which allows driving a HDL model from Julia.
It supports any HDL that can be parsed by Yosys, including VHDL, Verilog, nMigen and many more.
On top of that it provides a ModelingToolkit function for binding symbols to cxxrtl variables.
This way a HDL model can be embedded in a `DiscreteSystem`.
In the future, a `DiscreteSystem` will be able to be promoted to an `ODESystem`, allowing full mixed signal cosimulation between HDL models and MTK models.
For examples, please see the `test` folder.
This project uses Clang.jl to generate Julia bindings for cxxrtl, for which the generator resides in the `gen` folder.