diff options
| author | Jim Lawson | 2016-08-29 09:33:51 -0700 |
|---|---|---|
| committer | Jim Lawson | 2016-08-29 09:33:51 -0700 |
| commit | 5fcdd12fe92bd22f9cdfb8f5e39e510684b709bf (patch) | |
| tree | d7b7d7c80bd5ab82c1b1d72e3a5eb28797d82304 /chiselFrontend/src/main/scala/chisel3/core/Binding.scala | |
| parent | f84e6ef2d68404c741ea7e2aa2f3990ebb0984ee (diff) | |
Rename individual compile options.
Stricter values are "true". Current default (not strict) values are "false".
Diffstat (limited to 'chiselFrontend/src/main/scala/chisel3/core/Binding.scala')
| -rw-r--r-- | chiselFrontend/src/main/scala/chisel3/core/Binding.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chiselFrontend/src/main/scala/chisel3/core/Binding.scala b/chiselFrontend/src/main/scala/chisel3/core/Binding.scala index da678fed..a32d3ade 100644 --- a/chiselFrontend/src/main/scala/chisel3/core/Binding.scala +++ b/chiselFrontend/src/main/scala/chisel3/core/Binding.scala @@ -91,7 +91,7 @@ object Binding { element.binding = binder(unbound) } // If autoIOWrap is enabled and we're rebinding a PortBinding, just ignore the rebinding. - case portBound @ PortBinding(_, _) if (compileOptions.autoIOWrap && binder.isInstanceOf[PortBinder]) => + case portBound @ PortBinding(_, _) if (!compileOptions.requireIOWrap && binder.isInstanceOf[PortBinder]) => case binding => throw AlreadyBoundException(binding.toString) } ) @@ -145,7 +145,7 @@ object Binding { case binding => // The following kludge is an attempt to provide backward compatibility // It should be done at at higher level. - if (!(compileOptions.autoIOWrap && elementOfIO(element))) + if ((compileOptions.requireIOWrap || !elementOfIO(element))) throw NotSynthesizableException else Binding.bind(element, PortBinder(element._parent.get), "Error: IO") |
