diff options
| author | Richard Lin | 2017-04-26 17:52:29 -0700 |
|---|---|---|
| committer | GitHub | 2017-04-26 17:52:29 -0700 |
| commit | 36718cf6040990f2be9ab143adb1d3c519e9d983 (patch) | |
| tree | 34ae121faf999bb962f5257c26de651bd08ecf04 /chiselFrontend/src/main/scala/chisel3/core/Data.scala | |
| parent | 7449fdc9043708e426aeb8b12b30226db9e47a80 (diff) | |
Deprecate fromBits and clock/reset constructors (#583)
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Data.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Data.scala | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Data.scala b/chiselFrontend/src/main/scala/chisel3/core/Data.scala index e945cfbe..580dabe0 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Data.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Data.scala @@ -283,22 +283,6 @@ abstract class Data extends HasId { /** Returns Some(width) if the width is known, else None. */ final def widthOption: Option[Int] = if (isWidthKnown) Some(getWidth) else None - /** Creates an new instance of this type, unpacking the input Bits into - * structured data. - * - * This performs the inverse operation of toBits. - * - * @note does NOT assign to the object this is called on, instead creates - * and returns a NEW object (useful in a clone-and-assign scenario) - * @note does NOT check bit widths, may drop bits during assignment - * @note what fromBits assigs to must have known widths - */ - def fromBits(that: Bits)(implicit sourceInfo: SourceInfo, compileOptions: CompileOptions): this.type = { - val output = Wire(chiselCloneType).asInstanceOf[this.type] - output.connectFromBits(that) - output - } - /** Packs the value of this object as plain Bits. * * This performs the inverse operation of fromBits(Bits). |
