Giter VIP home page Giter VIP logo

firrtl's Introduction

Flexible Intermediate Representation for RTL

CircleCI

This is haskell implementation of FIRRTL. Right now it offers only subset of lower FIRRTL representation. I've done this for my experiments with digital circuits simulation.

firrtl's People

Contributors

jkopanski avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

przembot

firrtl's Issues

Newtype for Natural representing bit width.

Right now both type and value bit widths are represented by Peano encoded naturals. This is required for Types and associated singletons, but it would be nice if runtime value ie Demote Nat would be Natural. However Natural is already taken by singletons (library) Nat. That is why we need to create newtype wrapper over Natural.

This will allow us to write our own instance of SingKind with proper demoted associated type.

Module interpreter

Come up with appropriate type for representing state. Since statements can modify that state interpreter should be something like: State RtlState.

We mostly care for final state, that will contain values for all outputs from Module.
Other important task for interpreter is to perform all side effects like prints.

Type for rtl values

RTL values can be Valid or Invalid. Any operation involving Invalid value yields another Invalid.

Valid values can are characterized by its type (Ty or RTy). It would be nice to have basic set of typeclasses instances for those like Num or Bounded.

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.