Skip to content
3 changes: 2 additions & 1 deletion core/src/main/scala/chisel3/internal/firrtl/Serializer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ private[chisel3] object Serializer {
outputDir match {
case Some(d) =>
b ++= ", "
quote(d)
// When serializing a windows path we need to escape the backslashes
quote(d.replace("\\", "\\\\"))
case None => ()
}
case LayerConfig.Inline =>
Expand Down
6 changes: 3 additions & 3 deletions svsim/src/main/scala/Workspace.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ final class Workspace(

/** A directory where the user can store additional artifacts which are relevant to the primary sources (for instance, artifacts related to the generation of primary sources). These artifacts have no impact on the simulation, but it may be useful to group them with the other files generated by svsim for debugging purposes.
*/
val supportArtifactsPath = s"$absolutePath/support-artifacts"
val supportArtifactsPath = Paths.get(absolutePath, "support-artifacts").toString()

/** The directory containing user-provided source files used to compile the simulation when `compile` is called.
*/
val primarySourcesPath = s"$absolutePath/primary-sources"
val primarySourcesPath = Paths.get(absolutePath, "primary-sources").toString()

/** The directory containing code generated when calling `generateAdditionalSources`
*/
val generatedSourcesPath = s"$absolutePath/generated-sources"
val generatedSourcesPath = Paths.get(absolutePath, "generated-sources").toString()

private var _moduleInfo: Option[ModuleInfo] = None

Expand Down