Home

Awesome

Gem Version CI Maintainability codecov Gitter

RgGen::DUH

RgGen::DUH adds ability to load register map documents written in DUH format.

Installation

To install RgGen::DUH and required libraries, use the following command:

$ gem install rggen-duh

Usage

You need to tell RgGen to load RgGen::DUH. There are two ways to do this:

--plugin runtime option

$ rggen --plugin rggen-duh your_duh.json5

RGGEN_PLUGINS environment variable

$ export RGGEN_PLUGINS=${RGGEN_PLUGINS}:rggen-duh
$ rggen your_duh.json5

Supported Bit Field Types

Following table describes which RgGen bit field types are supported by DUH format and corresponeded DUH properties.

RgGen bit field typeSupport?accessmodifiedWriteValuereadActionreserved
rwyesread-writenot specifiednot specifiedno
rwtrgno
royesread-onlydon't carenot specifiedno
rotrgno
row0trgno
row1trgno
rowono
rowotrgno
rofno
woyeswrite-onlynot specifieddon't careno
wotrgno
wrcyesread-writenot specifiedclearno
wrsyesread-writenot specifiedsetno
rcyesread-onlydon't careclearno
w0cyesread-writezeroToClearnot specifiedno
w1cyesread-writeoneToClearnot specifiedno
wcyesread-writeclearnot specifiedno
wocyeswrite-onlycleardon't careno
rsyesread-onlydon't caresetno
w0syesread-writezeroToSetnot specifiedno
w1syesread-writeoneToSetnot specifiedno
wsyesread-writesetnot specifiedno
wosyeswrite-onlysetdon't careno
rwcno
rweno
rwlno
rwsno
w0crsyesread-writezeroToClearsetno
w1crsyesread-writeoneToClearsetno
wcrsyesread-writeclearsetno
w0srcyesread-writezeroToSetclearno
w1srcyesread-writeoneToSetclearno
wsrcyesread-writesetclearno
w0trgno
w1trgno
w1yesread-writeOncenot specifiednot specifiedno
wo1yeswriteOncenot specifieddon't careno
reservedyesdon't caredon't caredon't careyes

Contact

Feedbacks, bug reports, questions and etc. are wellcome! You can post them by using following ways:

Copyright & License

Copyright © 2020-2024 Taichi Ishitani. RgGen::DUH is licensed under the MIT License, see LICENSE for futher details.

Notice

RgGen::DUH includes the product generated from duh-schema. See lib/rggen/duh/duh-schema/README.md for futher details.

Code of Conduct

Everyone interacting in the RgGen::Duh project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.