summaryrefslogtreecommitdiff
path: root/src/test/scala/cookbook
diff options
context:
space:
mode:
authorRichard Lin2017-04-26 17:52:29 -0700
committerGitHub2017-04-26 17:52:29 -0700
commit36718cf6040990f2be9ab143adb1d3c519e9d983 (patch)
tree34ae121faf999bb962f5257c26de651bd08ecf04 /src/test/scala/cookbook
parent7449fdc9043708e426aeb8b12b30226db9e47a80 (diff)
Deprecate fromBits and clock/reset constructors (#583)
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