diff options
| author | Jiuyang Liu | 2021-06-29 09:47:43 +0800 |
|---|---|---|
| committer | GitHub | 2021-06-29 01:47:43 +0000 |
| commit | f210909e11f95cbc033898b22d3498ac7a7a87bc (patch) | |
| tree | 5ee22f553d308f8ba99d2f65e33e3ddb4f171438 /core/src/main/scala/chisel3/RawModule.scala | |
| parent | 79ed2c22558edf3ae03cc8f9aa1ac67e82f8d128 (diff) | |
deprecate getPorts with modulePorts. (#1945)
* deprecate getPorts with modulePorts.
* add doc to fullModulePorts and update deprecation notes.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Diffstat (limited to 'core/src/main/scala/chisel3/RawModule.scala')
| -rw-r--r-- | core/src/main/scala/chisel3/RawModule.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/scala/chisel3/RawModule.scala b/core/src/main/scala/chisel3/RawModule.scala index 4a60ca47..fadb8dae 100644 --- a/core/src/main/scala/chisel3/RawModule.scala +++ b/core/src/main/scala/chisel3/RawModule.scala @@ -36,6 +36,7 @@ abstract class RawModule(implicit moduleCompileOptions: CompileOptions) // // For debuggers/testers, TODO: refactor out into proper public API private var _firrtlPorts: Option[Seq[firrtl.Port]] = None + @deprecated("Use DataMirror.fullModulePorts instead. this API will be removed in Chisel 3.6", "Chisel 3.5") lazy val getPorts = _firrtlPorts.get val compileOptions = moduleCompileOptions |
