Giter VIP home page Giter VIP logo

pygmyhdl's Introduction

PygMyHDL

PygMyHDL is no longer supported or maintained because it depends upon the ``byteplay3`` module which is only compatible with Python 3.5.

PygMyHDL is a thin wrapper around MyHDL. MyHDL lets you design and simulate digital hardware using Python. PygMyHDL does the same thing, but tries to make it a little simpler. Think of it as "MyHDL on training wheels". Once you get enough experience with PygMyHDL, you'll probably cast it aside and just use straight MyHDL. That's OK; that's why I invented it.

Features

PygMyHDL adds the following features to MyHDL:

  • Wire and Bus classes for declaring single-bit and multi-bit digital signals.
  • Bus objects have .o and .i properties that are used to get the value on a bus (that's the .o property) and to drive values onto a bus (using the .i property).
  • State objects are used to declare state variables for finite-state machines. Each State object also stores all the defined states in its s attribute for use in making comparisons to states or updating state values.
  • The @chunk decorator is used to indicate a function will create one or more pieces of logic circuitry. These pieces will be implicitly gathered into a list of logic instances that can be simulated and synthesized later. (MyHDL requires you to explicitly store logic instances into Python variables so they can be found and processed later.)
  • The decorators @comb_logic and @seq_logic are used to declare functions that perform combinational and sequential logic operations, respectively. (These are almost identical to MyHDL's @always_comb and @always_seq decorators except they assist with the implicit instantiation of logic.)
  • Helper functions are provided for testing a digital design using random test vectors, exhaustive test vectors, user-defined test vectors, or a simple clock signal.
  • The myhdlpeek module is used to display the results of logic simulations as waveforms or tables.

Getting Started

Below are some examples of Jupyter notebooks using PygMyHDL. Unfortunately, the Github Notebook viewer doesn't render the waveform displays so you'll have to download and run the notebooks locally or click on the static HTML link to see what PygMyHDL can do.


pygmyhdl's People

Contributors

devbisme avatar xesscorp avatar

Watchers

 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.