1
0

Merge pull request #551 from edwardcwang/configdoc

Update config override documentation
This commit is contained in:
Henry Cook 2017-02-09 11:56:38 -08:00 committed by GitHub
commit f9acd4988c

View File

@ -423,11 +423,11 @@ post, so please stay tuned.
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
class WithNExtInterrupts extends Config (nExt: Int) {
(pname, site, here) => pname match {
case (NExtInterrupts => nExt)
}
}
class WithNExtInterrupts(nExt: Int) extends Config {
(site, here, up) => {
case NExtInterrupts => nExt
}
}
class MyConfig extends Config (new WithNExtInterrupts(16) ++ new DefaultSmallConfig)
Then you can build as usual with CONFIG=MyConfig.