diff options
| author | Jim Lawson | 2017-01-20 08:52:15 -0800 |
|---|---|---|
| committer | GitHub | 2017-01-20 08:52:15 -0800 |
| commit | 58c1840c7db278417fcceaf035e9df7601233406 (patch) | |
| tree | 29c6c3e1d1ad26f06f72b45cfe4f2ead7f83aee9 /src/main/scala/firrtl/ExecutionOptionsManager.scala | |
| parent | efc367e883ffd8c0a239f04943e4bda5ce356da4 (diff) | |
| parent | 51fde13c21825f87ee7fc854eb41215e02076bb5 (diff) | |
Merge branch 'master' into scaladocroot
Diffstat (limited to 'src/main/scala/firrtl/ExecutionOptionsManager.scala')
| -rw-r--r-- | src/main/scala/firrtl/ExecutionOptionsManager.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/scala/firrtl/ExecutionOptionsManager.scala b/src/main/scala/firrtl/ExecutionOptionsManager.scala index ab900a36..62ecb1c9 100644 --- a/src/main/scala/firrtl/ExecutionOptionsManager.scala +++ b/src/main/scala/firrtl/ExecutionOptionsManager.scala @@ -161,6 +161,7 @@ case class FirrtlExecutionOptions( compilerName match { case "high" => new HighFirrtlCompiler() case "low" => new LowFirrtlCompiler() + case "middle" => new MiddleFirrtlCompiler() case "verilog" => new VerilogCompiler() } } @@ -170,6 +171,7 @@ case class FirrtlExecutionOptions( case "verilog" => "v" case "low" => "lo.fir" case "high" => "hi.fir" + case "middle" => "mid.fir" case _ => throw new Exception(s"Illegal compiler name $compilerName") } @@ -247,12 +249,12 @@ trait HasFirrtlOptions { parser.opt[String]("compiler") .abbr("X") - .valueName ("<high|low|verilog>") + .valueName ("<high|middle|low|verilog>") .foreach { x => firrtlOptions = firrtlOptions.copy(compilerName = x) } .validate { x => - if (Array("high", "low", "verilog").contains(x.toLowerCase)) parser.success + if (Array("high", "middle", "low", "verilog").contains(x.toLowerCase)) parser.success else parser.failure(s"$x not a legal compiler") }.text { s"compiler to use, default is ${firrtlOptions.compilerName}" @@ -342,7 +344,7 @@ sealed trait FirrtlExecutionResult * Indicates a successful execution of the firrtl compiler, returning the compiled result and * the type of compile * - * @param emitType The name of the compiler used, currently "high", "low", or "verilog" + * @param emitType The name of the compiler used, currently "high", "middle", "low", or "verilog" * @param emitted The text result of the compilation, could be verilog or firrtl text. */ case class FirrtlExecutionSuccess(emitType: String, emitted: String) extends FirrtlExecutionResult |
