aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala
diff options
context:
space:
mode:
authorchick2020-08-14 19:47:53 -0700
committerJack Koenig2020-08-14 19:47:53 -0700
commit6fc742bfaf5ee508a34189400a1a7dbffe3f1cac (patch)
tree2ed103ee80b0fba613c88a66af854ae9952610ce /src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala
parentb516293f703c4de86397862fee1897aded2ae140 (diff)
All of src/ formatted with scalafmt
Diffstat (limited to 'src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala')
-rw-r--r--src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala b/src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala
index 72890c07..1e6d2c72 100644
--- a/src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala
+++ b/src/main/scala/firrtl/transforms/formal/RemoveVerificationStatements.scala
@@ -1,4 +1,3 @@
-
package firrtl.transforms.formal
import firrtl.ir.{Circuit, EmptyStmt, Statement, Verification}
@@ -6,7 +5,6 @@ import firrtl.{CircuitState, DependencyAPIMigration, MinimumVerilogEmitter, Tran
import firrtl.options.{Dependency, PreservesAll, StageUtils}
import firrtl.stage.TransformManager.TransformDependency
-
/**
* Remove Verification Statements
*
@@ -14,15 +12,12 @@ import firrtl.stage.TransformManager.TransformDependency
* This is intended to be required by the Verilog emitter to ensure compatibility
* with the Verilog 2001 standard.
*/
-class RemoveVerificationStatements extends Transform
- with DependencyAPIMigration
- with PreservesAll[Transform] {
+class RemoveVerificationStatements extends Transform with DependencyAPIMigration with PreservesAll[Transform] {
- override def prerequisites: Seq[TransformDependency] = Seq.empty
+ override def prerequisites: Seq[TransformDependency] = Seq.empty
override def optionalPrerequisites: Seq[TransformDependency] = Seq(Dependency(ConvertAsserts))
override def optionalPrerequisiteOf: Seq[TransformDependency] =
- Seq( Dependency[VerilogEmitter],
- Dependency[MinimumVerilogEmitter])
+ Seq(Dependency[VerilogEmitter], Dependency[MinimumVerilogEmitter])
private var removedCounter = 0
@@ -43,11 +38,13 @@ class RemoveVerificationStatements extends Transform
def execute(state: CircuitState): CircuitState = {
val newState = state.copy(circuit = run(state.circuit))
if (removedCounter > 0) {
- StageUtils.dramaticWarning(s"$removedCounter verification statements " +
- "(assert, assume or cover) " +
- "were removed when compiling to Verilog because the basic Verilog " +
- "standard does not support them. If this was not intended, compile " +
- "to System Verilog instead using the `-X sverilog` compiler flag.")
+ StageUtils.dramaticWarning(
+ s"$removedCounter verification statements " +
+ "(assert, assume or cover) " +
+ "were removed when compiling to Verilog because the basic Verilog " +
+ "standard does not support them. If this was not intended, compile " +
+ "to System Verilog instead using the `-X sverilog` compiler flag."
+ )
}
newState
}