ucb-bar/berkeley-hardfloat

chisel3.Driver.execute is deprecated

Closed this issue · 4 comments

As of Chisel 3.2.2, Driver.execute is deprecated and will be removed in 3.4. There appear to be ~100 usages in src/main/scala/tests.scala as shown below:

[warn] /hardfloat/src/main/scala/tests.scala:62:32: method execute in object Driver is deprecated (since 3.2.2): Use chisel3.stage.ChiselStage.execute. This will be removed in 3.4.
[warn]                 chisel3.Driver.execute(testArgs, () => new ValExec_f16FromRecF16)
[warn]                                ^
[warn] /hardfloat/src/main/scala/tests.scala:62:25: object Driver in package chisel3 is deprecated (since 3.2.4): Please switch to chisel3.stage.ChiselStage. Driver will be removed in 3.4.
[warn]                 chisel3.Driver.execute(testArgs, () => new ValExec_f16FromRecF16)
[warn]                         ^
...

This should be fixed in 13d92dc.

True.

how can i generate verilog codes via chisel3.4?

how can i generate verilog codes via chisel3.4?

See

val annos: AnnotationSeq = (new chisel3.stage.ChiselStage).execute(
Array("-X", "verilog"),
Seq(
TargetDirAnnotation(testDirAbsolutePath),
ChiselGeneratorAnnotation(module)
)
)