Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FixedIO__Modules with various kinds of probe ports #4105

Merged
merged 13 commits into from
May 30, 2024
Prev Previous commit
provide full path for scaladoc
  • Loading branch information
mwachs5 committed May 29, 2024
commit f99df1442dc39388e4a325972c70375a13e8f934
6 changes: 2 additions & 4 deletions core/src/main/scala/chisel3/IO.scala
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package chisel3

import chisel3.internal.{throwException, Builder}
import chisel3.probe.Probe
import chisel3.experimental.{noPrefix, requireIsChiselType, SourceInfo}
import chisel3.properties.{Class, Property}
import chisel3.reflect.DataMirror.internal.chiselTypeClone
import chisel3.reflect.DataMirror.{hasProbeTypeModifier, specifiedDirectionOf}

object IO {

/** Constructs a port for the current Module
/** Constructs a port for the current Module.
*
* This must wrap the datatype used to set the io field of any Module.
* i.e. All concrete modules must have defined io in this form:
Expand All @@ -21,7 +20,6 @@ object IO {
*
* Also registers a Data as a port, also performing bindings. Cannot be called once ports are
* requested (so that all calls to ports will return the same information).
* Internal API.
*/
def apply[T <: Data](iodef: => T)(implicit sourceInfo: SourceInfo): T = {
val module = Module.currentModule.get // Impossible to fail
Expand Down Expand Up @@ -67,7 +65,7 @@ object IO {

/** The same as [[IO]] except there is no prefix when given a [[Record]] or
* [[Bundle]]. For [[Element]] ([[UInt]], etc.) or [[Vec]] types, this is
* the same as [[IO]]. It is also the same as [[IO]] for [[Probe]] types.
* the same as [[IO]]. It is also the same as [[IO]] for [[chisel3.probe.Probe]] types.
*
* @example {{{
* class MyBundle extends Bundle {
Expand Down
Loading