summaryrefslogtreecommitdiff
path: root/docs/src/cookbooks/naming.md
diff options
context:
space:
mode:
authorJack Koenig2021-01-21 17:07:45 -0800
committerJack Koenig2021-01-21 17:19:39 -0800
commit7e4d1eeb03fddff735e67e3fe36b6efbfac39711 (patch)
tree2a4d3c34f1c660579c28440fdb246c8b401b89d6 /docs/src/cookbooks/naming.md
parent6c6ec7161e8f046fff1cfc68a468ce2f053fdb7f (diff)
Update docs for the removal of val io and MultiIOModule
Diffstat (limited to 'docs/src/cookbooks/naming.md')
-rw-r--r--docs/src/cookbooks/naming.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/src/cookbooks/naming.md b/docs/src/cookbooks/naming.md
index 098ea898..a41a1e9a 100644
--- a/docs/src/cookbooks/naming.md
+++ b/docs/src/cookbooks/naming.md
@@ -48,7 +48,7 @@ Use the `.suggestName` method, which is on all classes which subtype `Data`.
You can use the `noPrefix { ... }` to strip the prefix from all signals generated in that scope.
```scala mdoc
-class ExampleNoPrefix extends MultiIOModule {
+class ExampleNoPrefix extends Module {
val in = IO(Input(UInt(2.W)))
val out = IO(Output(UInt()))
@@ -68,14 +68,14 @@ In cases where a FIRRTL transform renames a signal/instance, you can use the `fo
```scala mdoc
import chisel3.util.experimental.{forceName, InlineInstance}
-class WrapperExample extends MultiIOModule {
+class WrapperExample extends Module {
val in = IO(Input(UInt(3.W)))
val out = IO(Output(UInt(3.W)))
val inst = Module(new Wrapper)
inst.in := in
out := inst.out
}
-class Wrapper extends MultiIOModule with InlineInstance {
+class Wrapper extends Module with InlineInstance {
val in = IO(Input(UInt(3.W)))
val out = IO(Output(UInt(3.W)))
val inst = Module(new MyLeaf)
@@ -83,7 +83,7 @@ class Wrapper extends MultiIOModule with InlineInstance {
inst.in := in
out := inst.out
}
-class MyLeaf extends MultiIOModule {
+class MyLeaf extends Module {
val in = IO(Input(UInt(3.W)))
val out = IO(Output(UInt(3.W)))
out := in