From 8dbc6e63b6235af69094eb75050e8a751e22694a Mon Sep 17 00:00:00 2001 From: Chick Markley Date: Thu, 21 Sep 2017 11:49:46 -0700 Subject: Fix problem where wrong verilog file is used. (#661) When calling verilator in a subdirectory like ./test_run_dir/... verilator will read the verilog file from the current working directory if there is a file there with the right name. This fix specifies the specific path of the verilog file intended.--- src/main/scala/firrtl/util/BackendCompilationUtilities.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/scala/firrtl/util/BackendCompilationUtilities.scala b/src/main/scala/firrtl/util/BackendCompilationUtilities.scala index 8f4ab73d..f47ac516 100644 --- a/src/main/scala/firrtl/util/BackendCompilationUtilities.scala +++ b/src/main/scala/firrtl/util/BackendCompilationUtilities.scala @@ -102,7 +102,7 @@ trait BackendCompilationUtilities { val command = Seq( "verilator", - "--cc", s"$dutFile.v" + "--cc", s"${dir.getAbsolutePath}/$dutFile.v" ) ++ blackBoxVerilogList ++ vSources.flatMap(file => Seq("-v", file.getAbsolutePath)) ++ -- cgit v1.2.3