From 7e4d1eeb03fddff735e67e3fe36b6efbfac39711 Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Thu, 21 Jan 2021 17:07:45 -0800 Subject: Update docs for the removal of val io and MultiIOModule --- docs/src/cookbooks/naming.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/src/cookbooks') 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 -- cgit v1.2.3