Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkoenig authored Mar 7, 2024
1 parent 51c49d1 commit 149c75c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/scala/gcd/GCD.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
package gcd

import chisel3._
import circt.stage.ChiselStage
// _root_ disambiguates from package chisel3.util.circt if user imports chisel3.util._
import _root_.circt.stage.ChiselStage

/**
* Compute GCD using subtraction method.
Expand Down Expand Up @@ -38,8 +39,8 @@ class GCD extends Module {
* Generate Verilog sources and save it in file GCD.v
*/
object GCD extends App {
val verilog_src = ChiselStage.emitSystemVerilogFile(
new GCD(),
firtoolOpts = Array("-disable-all-randomization",
"-strip-debug-info"))
ChiselStage.emitSystemVerilogFile(
new GCD,
firtoolOpts = Array("-disable-all-randomization", "-strip-debug-info")
)
}

0 comments on commit 149c75c

Please sign in to comment.