1
0

RegMapper: regmap(...) now takes BYTE addresses

If a device has configurable bus-width, we need a stable way of
enumerating registers. The byte offset stays unchanged.

This change also makes it possible to put an arbitrary number of RegFields
starting at some address which are then chopped up into appropriately bus-
sized registers.
This commit is contained in:
Wesley W. Terpstra
2016-09-22 19:49:29 -07:00
parent 972ca06729
commit 5e34b313ee
5 changed files with 49 additions and 36 deletions

View File

@ -27,7 +27,7 @@ trait ExampleModule extends HasRegMap
regmap(
0 -> Seq(
RegField(params.num, state)),
1 -> Seq(
4 -> Seq(
RegField.w1ToClear(4, pending, state)))
}