summaryrefslogtreecommitdiff
path: root/src/test/scala/cookbook
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/cookbook')
-rw-r--r--src/test/scala/cookbook/UInt2Bundle.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scala/cookbook/UInt2Bundle.scala b/src/test/scala/cookbook/UInt2Bundle.scala
index acbccc97..f9871024 100644
--- a/src/test/scala/cookbook/UInt2Bundle.scala
+++ b/src/test/scala/cookbook/UInt2Bundle.scala
@@ -15,7 +15,7 @@ class UInt2Bundle extends CookbookTester(1) {
val bar = UInt(4.W)
}
val uint = 0xb4.U
- val bundle = (new MyBundle).fromBits(uint)
+ val bundle = uint.asTypeOf(new MyBundle)
printf(p"$bundle") // Bundle(foo -> 11, bar -> 4)
// Test