Skip to content

Commit e1c4ba7

Browse files
committed
more scaladoc; cleanup
1 parent 96a0e86 commit e1c4ba7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

svsim/src/main/scala/Workspace.scala

+6-7
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ final class Workspace(
5050
else
5151
s"${System.getProperty("user.dir")}/$path"
5252

53-
/** A directory where the user can store additional artifacts which are relevant to the primary sources (for instance,
54-
* artifacts related to the generation of primary sources). These artifacts have no impact on the simulation, but it
55-
* may be useful to group them with the other files generated by svsim for debugging purposes.
53+
/** 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. 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.
5654
*/
5755
val supportArtifactsPath = s"$absolutePath/support-artifacts"
5856

@@ -102,12 +100,10 @@ final class Workspace(
102100
copyResource(klass, name, primarySourcesPath)
103101
}
104102

105-
/** `svsim` elaboration simply stores the provided `ModuleInfo` for use by the `compile` method.
106-
* The idea is that packages that actually do elaboration (like Chisel) will add an overload of
107-
* this method in an implicit class that then calls this method with the appropriate `ModuleInfo`.
103+
/** `svsim` elaboration simply stores the provided `ModuleInfo` for use by the `compile` method. The idea is that packages that actually do elaboration (like Chisel) will add an overload of this method in an implicit class that then calls this method with the appropriate `ModuleInfo`.
108104
*/
109105
def elaborate(moduleInfo: ModuleInfo) = {
110-
assert(_moduleInfo.isEmpty, "moduleInfo has already been set")
106+
assert(_moduleInfo.isEmpty)
111107
_moduleInfo = Some(moduleInfo)
112108
}
113109

@@ -333,6 +329,9 @@ final class Workspace(
333329
}
334330
//format: on
335331

332+
/** Shallow copy the sources from this workspace to a new one. Primary sources are symlinked to the
333+
* new directory; nothing else is copied.
334+
*/
336335
def shallowCopy(newPath: String, workingDirectoryPrefix: String = this.workingDirectoryPrefix): Workspace = {
337336
val newWorkspace = new Workspace(newPath, workingDirectoryPrefix)
338337
newWorkspace.reset()

0 commit comments

Comments
 (0)