Lightweight/minimalistic version of the Chisel template.
Uses Verilator for Verilog simulations by default. Edit the tester in src/test/scala/gcd/GCDTester.scala to remove Verilator as a backend if this is undesirable.
Contents at a glance:
.gitignore- helps Git ignore junk like generated files, build products, and temporary files.build.sbt- instructs sbt to build the Chisel projectbuild.sc- instructs mill to build the Chisel projectproject/build.properties- sets the sbt versionsrc/main/scala/gcd/GCD.scala- GCD source filesrc/test/scala/gcd/GCDTester.scala- GCD testerproject/plugins.sbt- enables warnings (optional)scalastyle-*- helps IDEs/code linters check for best coding practices (optional)
Feel free to rename or delete src/main/scala/gcd/GCD.scala and src/test/scala/gcd/GCDTester.scala or use them as a reference/template.
To run all tests in this design (recommended for test-driven development):
For mill 0.6.0+:
mill chiselModule.testFor sbt:
sbt testTo generate Verilog for a module without parameters, run ./build.sh <package> <module>.
The package for a module is specified by the line beginning with package - e.g. package gcd.
./build.sh gcd GCD