Skip to content

Any reason to have the Verilog emitter object on most modules #45

@carlosedp

Description

@carlosedp

Is there a reason to have the object extending App on most module files like below?

import chisel3.stage.ChiselStage
...
...
object LoadStoreObj extends App {
  (new ChiselStage).emitVerilog(new LoadStoreWrapper(64, 128*1024, 50000000, "test.hex"))
}

This is only required on the main module (Core) that is used by the toplevel.

Can I submit a PR removing them?
Also can I reformat the whole code automatically using scalafmt?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions