You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Liphen 43209019e7
docs: 增加各模块功能说明和一些关键代码注释
10 months ago
..
playground docs: 增加各模块功能说明和一些关键代码注释 10 months ago
utils init: 初始化实验框架 11 months ago
.gitignore chore(.gitignore): 移除不必要的文件规则 10 months ago
.scalafmt.conf init: 初始化实验框架 11 months ago
Makefile init: 初始化实验框架 11 months ago
README.md init: 初始化实验框架 11 months ago
build.sc init: 初始化实验框架 11 months ago

README.md

Chisel Project Template

Another version of the Chisel template supporting mill. mill is another Scala/Java build tool without obscure DSL like SBT. It is much faster than SBT.

Contents at a glance:

  • .gitignore - helps Git ignore junk like generated files, build products, and temporary files.
  • build.sc - instructs mill to build the Chisel project
  • Makefile - rules to call mill
  • playground/src/GCD.scala - GCD source file
  • playground/src/DecoupledGCD.scala - another GCD source file
  • playground/src/Elaborate.scala - wrapper file to call chisel command with the GCD module
  • playground/test/src/GCDSpec.scala - GCD tester

Feel free to rename or delete files under playground/ or use them as a reference/template.

Getting Started

First, install mill by referring to the documentation here.

To run all tests in this design (recommended for test-driven development):

make test

To generate Verilog:

make verilog

Change FIRRTL Compiler

You can change the FIRRTL compiler between SFC (Scala-based FIRRTL compiler) and MFC (MLIR-based FIRRTL compiler) by modifying the useMFC variable in playground/src/Elaborate.scala. The latter one requires firtool, which is included under utils/.