From 8422aaf6fca4ab511b2c37bdff4a6157f588363b Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Fri, 5 Feb 2016 09:57:47 -0800 Subject: [PATCH] Add a "/" when targetDir doesn't have one This isn't Chisel 3 specific, but that's what I happened to do in the Chisel 3 Driver wrapper. --- src/main/scala/Testing.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/Testing.scala b/src/main/scala/Testing.scala index a010975b..a194915e 100644 --- a/src/main/scala/Testing.scala +++ b/src/main/scala/Testing.scala @@ -165,7 +165,7 @@ object TestGenerator extends App with FileSystemUtilities { val v = createOutputFile(configClassName + ".knb") v.write(world.getKnobs) v.close - val d = new java.io.FileOutputStream(Driver.targetDir + configClassName + ".dtb") + val d = new java.io.FileOutputStream(Driver.targetDir + "/" + configClassName + ".dtb") d.write(paramsFromConfig(DeviceTree)) d.close val w = createOutputFile(configClassName + ".cst")