Commit 8e7c0e26 authored by Jaco Hofmann's avatar Jaco Hofmann
Browse files

Add System Verilog files to evaluate

parent cdb31373
...@@ -68,6 +68,7 @@ object EvaluateIP { ...@@ -68,6 +68,7 @@ object EvaluateIP {
lazy val (baseDir, files) = unzipFile(zipFile, Seq( lazy val (baseDir, files) = unzipFile(zipFile, Seq(
"""\.v$""".r, """\.v$""".r,
"""\.vhd$""".r, """\.vhd$""".r,
"""\.sv$""".r,
"""\.xdc$""".r, """\.xdc$""".r,
"""\.vh$""".r, """\.vh$""".r,
"""\.xci$""".r, """\.xci$""".r,
...@@ -83,6 +84,9 @@ object EvaluateIP { ...@@ -83,6 +84,9 @@ object EvaluateIP {
lazy val v_files = files collect { lazy val v_files = files collect {
case f if """\.v$""".r.findFirstIn(f.toString).nonEmpty && !includes.contains(f.getFileName) => f case f if """\.v$""".r.findFirstIn(f.toString).nonEmpty && !includes.contains(f.getFileName) => f
} }
lazy val sv_files = files collect {
case f if """\.sv$""".r.findFirstIn(f.toString).nonEmpty && !includes.contains(f.getFileName) => f
}
lazy val vhd_files = files collect { lazy val vhd_files = files collect {
case f if """\.vhd$""".r.findFirstIn(f.toString).nonEmpty && case f if """\.vhd$""".r.findFirstIn(f.toString).nonEmpty &&
!(v_files map (_.toString) contains (f.toString.dropRight(suflen) + ".v")) && !(v_files map (_.toString) contains (f.toString.dropRight(suflen) + ".v")) &&
...@@ -94,7 +98,7 @@ object EvaluateIP { ...@@ -94,7 +98,7 @@ object EvaluateIP {
lazy val xci_files = files.collect { lazy val xci_files = files.collect {
case f if f.toString.endsWith(".xci") && !includes.contains(f.getFileName) => f case f if f.toString.endsWith(".xci") && !includes.contains(f.getFileName) => f
} }
lazy val hdl_files = v_files ++ vhd_files lazy val hdl_files = v_files ++ vhd_files ++ sv_files
lazy val logFile = baseDir.resolve("evaluate.log") lazy val logFile = baseDir.resolve("evaluate.log")
lazy val tclFile = baseDir.resolve("evaluate.tcl") lazy val tclFile = baseDir.resolve("evaluate.tcl")
lazy val ipxact = files collectFirst { case f if f.toString.endsWith("component.xml") => f } lazy val ipxact = files collectFirst { case f if f.toString.endsWith("component.xml") => f }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment