diff options
| author | Jack Koenig | 2021-01-21 22:50:12 -0800 |
|---|---|---|
| committer | GitHub | 2021-01-21 22:50:12 -0800 |
| commit | dd6871b8b3f2619178c2a333d9d6083805d99e16 (patch) | |
| tree | 825776855e7d2fc28ef32ebb05df7339c24e00b3 /docs/src/cookbooks | |
| parent | 616256c35cb7de8fcd97df56af1986b747abe54d (diff) | |
| parent | 53c24cb0a369d4c4f57c28c098b30e4d3640eac2 (diff) | |
Merge pull request #1745 from chipsalliance/remove-val-io
Remove "val io" and rename MultiIOModule to Module
Diffstat (limited to 'docs/src/cookbooks')
| -rw-r--r-- | docs/src/cookbooks/naming.md | 8 |
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 |
