summaryrefslogtreecommitdiff
path: root/chiselFrontend/src/main/scala/chisel3/core/Data.scala
diff options
context:
space:
mode:
authorducky2018-05-11 15:49:03 -0700
committerRichard Lin2018-07-04 18:39:28 -0500
commit0d157633104cdd96b881726802c7691783aeb7e6 (patch)
treec23419f3999010a97b83757adcf9d375f3bce0eb /chiselFrontend/src/main/scala/chisel3/core/Data.scala
parent6ff91db33279c9f3ccbafe993cf4abee0542298a (diff)
broken
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Data.scala')
-rw-r--r--chiselFrontend/src/main/scala/chisel3/core/Data.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Data.scala b/chiselFrontend/src/main/scala/chisel3/core/Data.scala
index e2d8775d..ab277d9f 100644
--- a/chiselFrontend/src/main/scala/chisel3/core/Data.scala
+++ b/chiselFrontend/src/main/scala/chisel3/core/Data.scala
@@ -405,6 +405,10 @@ abstract class Data extends HasId with NamedComponent {
@deprecated("isLit is deprecated, use litToBigIntOption or litTo*Option", "chisel3.2")
def isLit(): Boolean = litArg.isDefined
+ // If this is an element literal, returns the LitArg bound to it.
+ // INTERNAL API, but this isn't protected to allow bundle literal constructors.
+ def elementLitArg: Option[LitArg] = None
+
/**
* If this is a literal that is representable as bits, returns the value as a BigInt.
* If not a literal, or not representable as bits (for example, is or contains Analog), returns None.