From 3d8064a9f2fd49bffb402b91131087c19ca7d6fc Mon Sep 17 00:00:00 2001 From: Jack Koenig Date: Mon, 2 Jul 2018 15:27:13 -0700 Subject: Direct to FIRRTL (#829) Provide direct conversion from ChiselIR to FIRRTL. Provide Driver support for dumping ProtoBuf.--- src/test/scala/chiselTests/PrintableSpec.scala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/test/scala/chiselTests/PrintableSpec.scala') diff --git a/src/test/scala/chiselTests/PrintableSpec.scala b/src/test/scala/chiselTests/PrintableSpec.scala index d733ab8c..c6ba0a1d 100644 --- a/src/test/scala/chiselTests/PrintableSpec.scala +++ b/src/test/scala/chiselTests/PrintableSpec.scala @@ -8,10 +8,8 @@ import chisel3.testers.BasicTester /* Printable Tests */ class PrintableSpec extends FlatSpec with Matchers { - private val PrintfRegex = """\s*printf\((.*)\).*""".r - // This regex is brittle, it relies on the first two arguments of the printf - // not containing quotes, problematic if Chisel were to emit UInt<1>("h01") - // instead of the current UInt<1>(1) for the enable signal + // This regex is brittle, it specifically finds the clock and enable signals followed by commas + private val PrintfRegex = """\s*printf\(\w+, [^,]+,(.*)\).*""".r private val StringRegex = """([^"]*)"(.*?)"(.*)""".r private case class Printf(str: String, args: Seq[String]) private def getPrintfs(firrtl: String): Seq[Printf] = { -- cgit v1.2.3