13 releases

0.1.12 Aug 29, 2020
0.1.11 Jul 19, 2020
0.1.8 Jun 28, 2020
0.1.7 Mar 27, 2020
0.1.1 Jan 30, 2020

#12 in Emulators

Download history 9/week @ 2020-05-24 25/week @ 2020-05-31 2/week @ 2020-06-07 8/week @ 2020-06-14 2/week @ 2020-06-21 44/week @ 2020-06-28 14/week @ 2020-07-05 38/week @ 2020-07-12 48/week @ 2020-07-19 110/week @ 2020-07-26 627/week @ 2020-08-02 662/week @ 2020-08-09 13/week @ 2020-08-16 59/week @ 2020-08-23 23/week @ 2020-08-30 44/week @ 2020-09-06

545 downloads per month

MIT/Apache

270KB
6K SLoC

kaze

An HDL embedded in Rust.

Latest version Documentation License

kaze provides an API to describe Modules composed of Signals, which can then be used to generate Rust simulator code or Verilog modules.

kaze's API is designed to be as minimal as possible while still being expressive. It's designed to prevent the user from being able to describe buggy or incorrect hardware as much as possible. This enables a user to hack on designs fearlessly, while the API and generators ensure that these designs are sound.

Usage

[dependencies]
kaze = "0.1"

Example

use kaze::*;

fn main() -> std::io::Result<()> {
    // Create a context, which will contain our module(s)
    let c = Context::new();

    // Create a module
    let inverter = c.module("Inverter");
    let i = inverter.input("i", 1); // 1-bit input
    inverter.output("o", !i); // Output inverted input

    // Generate Rust simulator code
    sim::generate(inverter, std::io::stdout())?;

    // Generate Verilog code
    verilog::generate(inverter, std::io::stdout())?;

    Ok(())
}

Releases

See changelog for release information.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies