Refactor Kelvin's BUILD targets

- Split the giant ball of yarn that is the `kelvin` chisel library into
  a `base`, `scalar`, and `vector` chunk
- Pull some commonly used interfaces out into a new file that's part of
  the `base` library, and depended on by `scalar` and `vector`

Change-Id: Ibf8267064caf6983410280107d4fb750ce51a225
13 files changed
tree: d29f7b62345fa95bdb6868bef48c049576c4524d
  1. doc/
  2. external/
  3. hdl/
  4. lib/
  5. rules/
  6. tests/
  7. third_party/
  8. utils/
  9. .bazelrc
  10. .bazelversion
  11. .gitignore
  12. CONTRIBUTING.md
  13. LICENSE
  14. PREUPLOAD.cfg
  15. README.md
  16. WORKSPACE
README.md

Kelvin

Kelvin is a RISC-V32IM core with a custom instruction set.

Kelvin block diagram

More information on the design can be found in the overview.

Building

Kelvin uses bazel as it's build system. The Verilated simulator for Kelvin can be generated using:

bazel build //tests/verilator_sim:core_sim

The verilog source for the Kelvin core can be generated using:

bazel build //hdl/chisel/src/kelvin:core_cc_library_emit_verilog

Verilog source for the Matcha SoC can be generated using:

bazel clean --expunge  # To generate the ToT sha
bazel build //hdl/chisel:matcha_kelvin_verilog