summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/chiselTests/BundleLiteralSpec.scala6
-rw-r--r--src/test/scala/chiselTests/LiteralExtractorSpec.scala8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/test/scala/chiselTests/BundleLiteralSpec.scala b/src/test/scala/chiselTests/BundleLiteralSpec.scala
index 8459e0fc..7d28660b 100644
--- a/src/test/scala/chiselTests/BundleLiteralSpec.scala
+++ b/src/test/scala/chiselTests/BundleLiteralSpec.scala
@@ -21,8 +21,8 @@ class BundleLiteralSpec extends ChiselFlatSpec {
def Lit(aVal: UInt, bVal: Bool): MyBundle = {
val clone = cloneType
clone.selfBind(BundleLitBinding(Map(
- clone.a -> aVal.elementLitArg.get,
- clone.b -> bVal.elementLitArg.get
+ clone.a -> litArgOfBits(aVal),
+ clone.b -> litArgOfBits(bVal)
)))
clone
}
@@ -30,7 +30,7 @@ class BundleLiteralSpec extends ChiselFlatSpec {
def Lit(aVal: UInt): MyBundle = {
val clone = cloneType
clone.selfBind(BundleLitBinding(Map(
- clone.a -> aVal.elementLitArg.get
+ clone.a -> litArgOfBits(aVal)
)))
clone
}
diff --git a/src/test/scala/chiselTests/LiteralExtractorSpec.scala b/src/test/scala/chiselTests/LiteralExtractorSpec.scala
index 0ffabfb0..8354297b 100644
--- a/src/test/scala/chiselTests/LiteralExtractorSpec.scala
+++ b/src/test/scala/chiselTests/LiteralExtractorSpec.scala
@@ -63,8 +63,8 @@ class LiteralExtractorSpec extends ChiselFlatSpec {
def Lit(aVal: SInt, bVal: FixedPoint): InsideBundle = {
val clone = cloneType
clone.selfBind(BundleLitBinding(Map(
- clone.x -> aVal.elementLitArg.get,
- clone.y -> bVal.elementLitArg.get
+ clone.x -> litArgOfBits(aVal),
+ clone.y -> litArgOfBits(bVal)
)))
clone
}
@@ -107,8 +107,8 @@ class LiteralExtractorSpec extends ChiselFlatSpec {
def Lit(aVal: UInt, bVal: Bool): MyBundle = {
val clone = cloneType
clone.selfBind(BundleLitBinding(Map(
- clone.a -> aVal.elementLitArg.get,
- clone.b -> bVal.elementLitArg.get
+ clone.a -> litArgOfBits(aVal),
+ clone.b -> litArgOfBits(bVal)
)))
clone
}