aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorJim Lawson2018-10-31 09:21:05 -0700
committerGitHub2018-10-31 09:21:05 -0700
commit297fbda180584cc3456145faecdc40418babeef1 (patch)
tree1fcd05397b6b6b6f04bda7a98d36a1742d0ab476 /src/main
parent0a4bcaa4053aca16f21f899ba76b1b751cfb47b3 (diff)
Don't include verilog header files in "FileList" for VCS/Verilator. (#918)
When constructing the black box helper file list (firrtl_black_box_resource_files.f), filter out Verilog header files (*.vh) - Fixes #917
Diffstat (limited to 'src/main')
-rw-r--r--src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala b/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala
index 31c2a04b..61045c00 100644
--- a/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala
+++ b/src/main/scala/firrtl/transforms/BlackBoxSourceHelper.scala
@@ -106,7 +106,9 @@ class BlackBoxSourceHelper extends firrtl.Transform {
file
}
- BlackBoxSourceHelper.writeFileList(resourceFiles ++ inlineFiles, targetDir)
+ // Issue #917 - We don't want to list Verilog header files ("*.vh") in our file list - they will automatically be included by reference.
+ val verilogSourcesOnly = (resourceFiles ++ inlineFiles).filterNot( _.getName().endsWith(".vh"))
+ BlackBoxSourceHelper.writeFileList(verilogSourcesOnly, targetDir)
state
}