Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.

More compact register attribute definitions #85

Open
markuslsra opened this issue Aug 29, 2016 · 1 comment
Open

More compact register attribute definitions #85

markuslsra opened this issue Aug 29, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@markuslsra
Copy link

markuslsra commented Aug 29, 2016

Add the possibility to write field attributes in a more compact way.

E.g sth like:

        width 36
        software {
            ro
        }
        hardware {
            wo
            no_wen
        }

combines to

          attributes { width 36  sw_ro  hw_wo  hw_no_wen }

This could compact the size of the RF definitions... ( E.g. at the moment 35 hardware register easily need 1500 lines of code as description)

@TM90 TM90 added this to the v1.2.0 milestone Sep 1, 2016
@TM90
Copy link
Member

TM90 commented Sep 1, 2016

For a simpler and a more consistent implementation

field test{
    width 32
    software ro
    hardware {
         wo
         no_wen
    }
}

would combine to:

field test {width 32; sw_ro; hw_wo; hw_no_wen}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants