commit | 3cf90837458bd08c263be81016b3ae4708d23cc2 | [log] [tgz] |
---|---|---|
author | Alex Van Damme <atv@google.com> | Thu Jul 17 20:39:27 2025 +0000 |
committer | Alex Van Damme <atv@google.com> | Thu Jul 17 13:54:29 2025 -0700 |
tree | a1b4840c02a4db5cf39a8218135ccd96ec7a8660 | |
parent | 4570a533bccb08df32de295931f69be12dc68d7f [diff] |
rules: Query C++ toolchain for cocotb builds This change updates the cocotb rules to correctly query the C++ toolchain for the compiler and linker executables. Previously, the rules were implicitly relying on system paths for these tools. By using `ctx.toolchains["@bazel_tools//tools/cpp:toolchain_type"].cc`, we ensure that the build is hermetic and uses the toolchain provided by Bazel, making it more robust and reproducible. Change-Id: Idbc0812724e9ebf364ee4c0eccfbc404726c3cc1
Kelvin is a RISC-V32IM core with a custom instruction set.
More information on the design can be found in the overview.
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