Skip to content
icarogabryelPublic

About

Flote is a HDL and Python framework for simulation. Designed to be friendly, simple, and productive. Easy to use and learn.

Topics

Resources

Code of conduct

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Repository files navigation

Flote logo

GitHub Repo stars PyPI - Version Documentation License

🛸 Introduction

Flote is a hardware description language and a Python framework for hardware simulation. It is designed to be friendly, simple, light and productive. More easy to use and learn than Verilog and VHDL. Using Flote, you can create integrated circuits component by using it's HDL and/or Python framework.

Flote in VS Code

Here is an example of a half adder in Flote:

comp HalfAdder {
  in bit a, b;

  out bit sum = a xor b;
  out bit carry = a and b;
}

Warning

Flote is currently in beta. It may contain bugs, incomplete features, and other issues. Breaking changes may occur between releases.

⚙️ How it works

Flote's frontend (the elaborator) parses designs written in the Flote HDL and produces a netlist representing the circuit. The frontend includes a scanner, a parser and a builder, with the builder responsible for assembling the netlist. The backend converts that netlist into a simulation model - an object exposed by the Python API that replicates the integrated circuit's behavior. The simulation model is composed of buses and relies on event-driven simulation combined with dynamic programming techniques to compute the circuit's temporal behavior. The Python package also supports exporting simulation data to waveform files (for now, only VCD).

flowchart LR
  A[Flote HDL source]

  subgraph FE[Frontend]
    direction LR
    B[Scanner] --> C[Parser]
    C --> D[Builder]
  end

  A --> B
  D --> E[Netlist IR]

  subgraph BE[Backend]
    direction LR
    F[Renderer] --> G[Simulation Component]
  end

  E --> F
  G --> H[TestBench]
  H --> I[VCD dump]

  classDef frontend fill:#EAF5FF,stroke:#1D70B8,stroke-width:1px,color:#0B3A5B;
  classDef backend fill:#EAFBEA,stroke:#2E7D32,stroke-width:1px,color:#1B5E20;
  classDef bridge fill:#FFF4CC,stroke:#8A6D1A,stroke-width:2px,color:#5D4500;
  classDef source fill:#F3E8FF,stroke:#7E22CE,stroke-width:1px,color:#581C87;
  classDef testbench fill:#FFE4E6,stroke:#BE123C,stroke-width:1px,color:#881337;

  class A,I source;
  class B,C,D frontend;
  class F,G backend;
  class E bridge;
  class H testbench;
Loading

📚 Documentation

The documentation can be found at flote.readthedocs.io.

🎁 Buy Me a Coffee Beer

Stone Cold

If Flote helps you, consider supporting its development on GitHub Sponsors or a PIX donation to the key icaro.gabryel@outlook.com if you are in Brazil.

Your support helps keep the project alive and thriving.


Flote is an open-source project developed as part of academic research.
Made in Brazil at CESLa (Circuits and Embedded Systems Laboratory) of the Federal University of Piauí — and in my humble bedroom.

Brazil Mentioned

About

Flote is a HDL and Python framework for simulation. Designed to be friendly, simple, and productive. Easy to use and learn.

Topics

Resources

Code of conduct

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages