sifive/duh

Default value of access/modifiedWriteValue/readAction properties

Closed this issue · 2 comments

I'm Taichi Ishitani and author of RgGen.
I'm developing a plugin for DUH because @drom requested me (rggen/rggen-duh#1).

Can you tell me what is default value of access, modifiedWriteValue and readAction properties?
I think DUH is inspired by IP-XACT so default value of these properties should be based on IP-XACT specification.

drom commented

Yes, DUH is based on IPXACT in Spirit. And Should follow IPXACT rules where it makes sense.

access

  • if not defined on field --> inherited from parent register.
  • if not defined on register --> inhereted from parent registerFile/addressBlock
  • if not defined on registerFile/addressBlock --> read-write

modifiedWriteValue, readAction -- if not specified assume no action extra action.
https://github.com/sifive/duh-schema/blob/master/lib/field.js#L8
https://github.com/sifive/duh-schema/blob/master/lib/field.js#L23

Thank you!
I understood.