Skip to content

Commit

Permalink
Replaced --project flag with automatic project detection from
Browse files Browse the repository at this point in the history
--configInstance/--configCollect flag
  • Loading branch information
Adam Izraelevitz authored and Adam Izraelevitz committed Sep 11, 2014
1 parent 0335048 commit b287932
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/scala/Driver.scala
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,8 @@ object Driver extends FileSystemUtilities{
case "--backannotation" => isBackannotating = true
case "--model" => model = args(i + 1) ; i += 1
//Jackhammer Flags
case "--configCollect" => chiselConfigMode = Some("collect"); chiselConfigClassName = Some(args(i+1)); i+=1; //dump constraints in dse dir
case "--project" => chiselProjectName = Some(args(i+1)); i+=1; //project containing chiselConfigClassName
case "--configInstance" => chiselConfigMode = Some("instance"); chiselConfigClassName = Some(args(i+1)); i+=1; //use ChiselConfig to supply parameters
case "--configCollect" => chiselConfigMode = Some("collect"); chiselConfigClassName = Some(getArg(args(i+1),1)); chiselProjectName = Some(getArg(args(i+1),0)); i+=1; //dump constraints in dse dir
case "--configInstance" => chiselConfigMode = Some("instance"); chiselConfigClassName = Some(getArg(args(i+1),1)); chiselProjectName = Some(getArg(args(i+1),0)); i+=1; //use ChiselConfig to supply parameters
case "--configDump" => chiselConfigDump = true; //when using --configInstance, write Dump parameters to .prm file in targetDir
case "--dumpTestInput" => dumpTestInput = true
case "--testerSeed" => {
Expand Down Expand Up @@ -319,7 +318,7 @@ object Driver extends FileSystemUtilities{
if(!s2.isEmpty) s2.get else ""
}
}

def getArg(s:String,i:Int):String = s.split('.')(i)

// Setting this to TRUE will case the test harness to print its
// standard input stream to a file.
Expand Down

0 comments on commit b287932

Please sign in to comment.