GithubHelp home page GithubHelp logo

00mjk / clash-compiler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clash-lang/clash-compiler

0.0 0.0 0.0 16.52 MB

Haskell to VHDL/Verilog/SystemVerilog compiler

Home Page: https://clash-lang.org/

License: Other

Shell 0.45% Haskell 96.64% C 2.33% Dockerfile 0.30% Makefile 0.01% Nix 0.18% Python 0.08%

clash-compiler's Introduction

Clash - A functional hardware description language

Pipeline status Hackage Hackage Dependencies Documentation Status

Clash is a functional hardware description language that borrows both its syntax and semantics from the functional programming language Haskell. The Clash compiler transforms these high-level descriptions to low-level synthesizable VHDL, Verilog, or SystemVerilog.

Features of Clash:

  • Strongly typed, but with a very high degree of type inference, enabling both safe and fast prototyping using concise descriptions.

  • Interactive REPL: load your designs in an interpreter and easily test all your component without needing to setup a test bench.

  • Higher-order functions, with type inference, result in designs that are fully parametric by default.

  • Synchronous sequential circuit design based on streams of values, called Signals, lead to natural descriptions of feedback loops.

  • Support for multiple clock domains, with type safe clock domain crossing.

Community

Mailing list: for updates and questions join the mailing list [email protected] or read the forum

Slack: functionalprogramming.slack.com#clash (Invite yourself at fpchat-invite.herokuapp.com).

IRC: libera.chat#clash (webchat access) (or ircs://irc.libera.chat:6697/clash if you want to use a regular IRC client)

Get Clash

Check out clash-lang.org/install to install the latest stable release of Clash, or to setup a Clash project.

Get Clash from source

Get the source code using Git and enter the cloned directory:

git clone [email protected]:clash-lang/clash-compiler.git

# Alternatively, if you haven't setup SSH keys with GitHub:
# git clone https://github.com/clash-lang/clash-compiler.git

cd clash-compiler

To check out a released version, use:

git checkout v1.2.3

To checkout a release branch use:

git checkout 1.2

Note that release branches might contain non-released patches.

Cabal

To use Cabal you need both Cabal and GHC installed on your system. For Linux and MacOS users we recommend using ghcup. Windows users are recommended to use the Haskell Platform.

To run clash use:

cabal v2-run --write-ghc-environment-files=always -- clash

If this fails, make sure you've got an up-to-date package index:

cabal update

Stack

Install Stack and run:

stack run -- clash

Nix

Or use Nix to get a shell with the clash and clashi binaries on your PATH:

nix-shell

Related libraries and initiatives

  • Clashilator: tooling to integrate Clash with Verilator. Enables fast, multithreaded simulation by compiling Clash designs to C++.
  • Clash Protocols: experimental library for writing Clash circuits with bidirectional communication - such as AXI or Avalon.
  • Clash Starters: starter projects to quickly get you up and running.
  • Clash WaveDrom: generate wave diagrams from Clash using WaveDrom

Projects built with Clash

clash-compiler's People

Contributors

alex-mckenna avatar basile-henry avatar bgamari avatar blaxill avatar bosj avatar cbiffle avatar cchalmers avatar christiaanb avatar cramsay avatar digitalbrains1 avatar eagleerwin avatar ericson2314 avatar expipiplus1 avatar felixonmars avatar gergoerdi avatar ggreif avatar hcab14 avatar jgjverheij avatar jhmcstanton avatar jonfowler avatar judah avatar jvwesterveld avatar leonschoorl avatar martijnbastiaan avatar mmzx avatar omelkonian avatar rikstrijker avatar rowang077 avatar strake avatar thoughtpolice avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.