diff options
Diffstat (limited to 'docs/src/wiki-deprecated/cookbook.md')
| -rw-r--r-- | docs/src/wiki-deprecated/cookbook.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/wiki-deprecated/cookbook.md b/docs/src/wiki-deprecated/cookbook.md index 7fa97579..9a10a689 100644 --- a/docs/src/wiki-deprecated/cookbook.md +++ b/docs/src/wiki-deprecated/cookbook.md @@ -282,12 +282,12 @@ class ModuleWithOptionalIOs(flag: Boolean) extends Module { } ``` -The following is an example for a `MultiIOModule` where an entire `IO` is optional: +The following is an example where an entire `IO` is optional: ```scala mdoc:silent:reset import chisel3._ -class ModuleWithOptionalIO(flag: Boolean) extends MultiIOModule { +class ModuleWithOptionalIO(flag: Boolean) extends Module { val in = if (flag) Some(IO(Input(Bool()))) else None val out = IO(Output(Bool())) |
