# Chisel3 chisel3 is a new FIRRTL based chisel the current backward incompatiabilities with chisel 2.x are: ```scala val wire = Bits(width = 15) ``` is ```scala val wire = Wire(Bits(width = 15)) ``` ## Chisel3 Infrastructure. Chisel3 is much more modular than Chisel2. What was once provided by a monolithic Scala program, is provided by separate components. Currently, those components are: - Chisel3 (Scala) - firrtl (Stanza) and for the C++ simulator - flo-llvm (C++) - clang firrtl can generate Verilog output directly, so fewer components are required for Verilog testing. ### Stanza In order to build firrtl, you need a (currently patched) copy of Stanza. (We should add this to the firrtl repo in utils/bin.) ### firrtl We assume that copies (or links to) firrtl are in chisel3/bin. flo-llvm and clang should be found in your $PATH. Follow the instructions on the firrtl repo for building firrtl and put the resulting binary (utils/bin/firrtl) in chisel3/bin. ### flo-llvm flo-llvm is Palmer's flo to (.o,.v) converter. It's hosted at: https://github.com/ucb-bar/flo and https://github.com/palmer-dabbelt/flo-llvm Installation instructions can be found at: https://wiki.eecs.berkeley.edu/dreamer/Main/DistroSetup ### clang clang is available for Linux and Mac OS X and usually comes installed with development tools. You need to ensure that the version you're using is compatible with flo-llvm (currently, clang/llvm 3.6). There are instructions on the web for managing multiple versions of clang/llvm. Once you have all the components in place, build and publish Chisel3: ```shell % cd chisel3 % sbt clean publish-local ```