From 25db3d36c4c1f5013b49662cd8a9fbdd1fc381fb Mon Sep 17 00:00:00 2001 From: Edward Wang Date: Wed, 8 Feb 2017 15:26:01 -0800 Subject: [PATCH] Update config override documentation As per https://github.com/ucb-bar/rocket-chip/pull/507 --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a72dc1e1..5d94f12b 100644 --- a/README.md +++ b/README.md @@ -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.