From 277b3979912db443aef4e1aad741ac2b3c07f42f Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Wed, 21 Nov 2018 12:53:54 -0800 Subject: Make toBools support chained apply The expanded version substituted in by the macro was misspelled, renamed from toBools -> do_toBools as expected by the macro --- src/test/scala/chiselTests/UIntOps.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/test/scala/chiselTests/UIntOps.scala') diff --git a/src/test/scala/chiselTests/UIntOps.scala b/src/test/scala/chiselTests/UIntOps.scala index d583c0bb..4bd9706d 100644 --- a/src/test/scala/chiselTests/UIntOps.scala +++ b/src/test/scala/chiselTests/UIntOps.scala @@ -139,5 +139,15 @@ class UIntOpsSpec extends ChiselPropSpec with Matchers { property("Bit extraction on literals should work for all non-negative indices") { assertTesterPasses(new UIntLitExtractTester) } + + property("toBools should support chained apply") { + elaborate(new Module { + val io = IO(new Bundle { + val in = Input(UInt(8.W)) + val out = Output(Bool()) + }) + io.out := io.in.toBools()(2) + }) + } } -- cgit v1.2.3