From 36718cf6040990f2be9ab143adb1d3c519e9d983 Mon Sep 17 00:00:00 2001 From: Richard Lin Date: Wed, 26 Apr 2017 17:52:29 -0700 Subject: Deprecate fromBits and clock/reset constructors (#583) --- src/test/scala/cookbook/UInt2Bundle.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/scala/cookbook') 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 -- cgit v1.2.3