mirror of https://github.com/YosysHQ/yosys.git
42920c9bc0
Before this commit, `at()` and `operator[]` did the same thing, making one of them redundant. There was also a somewhat awkward `parts_at()`, which is more generic than `at()`. After this commit, `parts_at()` becomes `at()`, and `at()` becomes `operator[]`. Any quick-and-dirty accesses should use `items["name"]`, which expects a single-part item. Generic code should instead use `items.at("name")`, which will return multiple parts. Both will check for the existence of the name. This is unlikely to break downstream code since it's likely been using the shorter `operator[]`. (In any case this API is not stable.) |
||
---|---|---|
.. | ||
cxxrtl | ||
README.txt |
README.txt
This directory contains the runtime components of CXXRTL and should be placed on the include path when building the simulation using the `-I${YOSYS}/backends/cxxrtl/runtime` option. These components are not used in the Yosys binary; they are only built as a part of the simulation binary. The interfaces declared in `cxxrtl_capi*.h` contain the stable C API. These interfaces will not be changed in backward-incompatible ways unless no other option is available, and any breaking changes will be made in a way that causes the downstream code to fail in a visible way. The ABI of these interfaces is considered stable as well, and it will not use features complicating its use via libraries such as libffi or ctypes. The implementations in `cxxrtl_capi*.cc` are considered private; they are still placed in the include path to enable build-system-less builds (where the CXXRTL runtime component is included in the C++ file of the simulation toplevel). The interfaces declared in `cxxrtl*.h` (without `capi`) are unstable and may change without notice. For clarity, all of the files in this directory and its subdirectories have unique names regardless of the directory where they are placed.