Add support for dumping structure fields in VCD #967
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See #790.
This PR adds an entirely private API for describing formatting of values that is used in the standard library, in departure from our standing policy of not using private APIs in the standard library.
This is a temporary measure intended to get the version 0.4 released faster, as it has been years in the making. It is expected that this API will be made public in the version 0.5 after going through the usual RFC process.
This PR only adds VCD lines for fields defined in
lib.data.Layout
when usingsim.pysim
. The emitted RTLIL and Verilog remain the same. It is expected that whensim.cxxsim
lands, RTLIL/Verilog output will include aliases for layout fields as well.The value representation API also handles formatting of enumerations, with no changes visible to the designer. The implementation of
Signal(decoder=)
is changed as well to use the new API, with full backwards compatibility and no public API changes.