This repository contains a bazel rule set for running ghdl, the
VHDL simulator and synthesizer
bazelinstallation viabazelisk. I recommend downloadingbazeliskand placing it somewhere in your$PATHunder the namebazel.
Everything else will be downloaded for use the first time you run the build.
This rule set is hermetic. All dependencies are set up automatically by bazel.
In general, see integration/ for example use.
The module is available through my bazel registry at https://github.com/filmil/bazel-registry.
Use GDHL to convert a vhdl file to verilog. The build process will build an intermediate result of a single VHDL library as well.
cd integration && bazel build //... && cat bazel-bin/verilog/lib.v
To see how it builds a library, run this:
cd integration && bazel build //:lib
- Only Linux host and target are supported for now, although it should be straightforward (but not necessarily trivial) to add support for other archs.
- https://github.com/solsjo/rules_ghdl: an alternative rule set, which is not hermetic.