diff options
| author | Jack Koenig | 2018-07-02 15:27:13 -0700 |
|---|---|---|
| committer | GitHub | 2018-07-02 15:27:13 -0700 |
| commit | 3d8064a9f2fd49bffb402b91131087c19ca7d6fc (patch) | |
| tree | b72fe3f4579d99975b46f6687aabf65d9d8645bd /src/test | |
| parent | b17998eacb8e7b38b90829279e852bf8d5911f83 (diff) | |
Direct to FIRRTL (#829)
Provide direct conversion from ChiselIR to FIRRTL.
Provide Driver support for dumping ProtoBuf.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/scala/chiselTests/PrintableSpec.scala | 6 |
1 files changed, 2 insertions, 4 deletions
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] = { |
