Merge pull request #551 from edwardcwang/configdoc
Update config override documentation
This commit is contained in:
commit
f9acd4988c
@ -423,10 +423,10 @@ post, so please stay tuned.
|
|||||||
To override specific configuration items, such as the number of external interrupts,
|
To override specific configuration items, such as the number of external interrupts,
|
||||||
you can create your own Configuration(s) and compose them with Config's ++ operator
|
you can create your own Configuration(s) and compose them with Config's ++ operator
|
||||||
|
|
||||||
class WithNExtInterrupts extends Config (nExt: Int) {
|
class WithNExtInterrupts(nExt: Int) extends Config {
|
||||||
(pname, site, here) => pname match {
|
(site, here, up) => {
|
||||||
case (NExtInterrupts => nExt)
|
case NExtInterrupts => nExt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
class MyConfig extends Config (new WithNExtInterrupts(16) ++ new DefaultSmallConfig)
|
class MyConfig extends Config (new WithNExtInterrupts(16) ++ new DefaultSmallConfig)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user