Skip to content

filmil/bazel_rules_ghdl

Repository files navigation

Bazel rules for ghdl

Test status Publish BCR status Publish status Tag and Release status

This repository contains a bazel rule set for running ghdl, the VHDL simulator and synthesizer

Prerequisites

  • bazel installation via bazelisk. I recommend downloading bazelisk and placing it somewhere in your $PATH under the name bazel.

Everything else will be downloaded for use the first time you run the build.

Hermeticity

This rule set is hermetic. All dependencies are set up automatically by bazel.

Examples

In general, see integration/ for example use.

The module is available through my bazel registry at https://github.com/filmil/bazel-registry.

ghdl_verilog

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

Notes

  • Only Linux host and target are supported for now, although it should be straightforward (but not necessarily trivial) to add support for other archs.

References

About

Bazel build rules for GHDL

Resources

License

Stars

Watchers

Forks

Packages

No packages published