Skip to content

foshardware/firrtl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Andreas Westerwick
May 9, 2020
e0c55b3 · May 9, 2020

History

32 Commits
Feb 1, 2019
Mar 10, 2019
Mar 10, 2019
Jan 1, 2019
Jan 1, 2019
Jan 1, 2019
May 9, 2020
Jan 1, 2019
Feb 1, 2019
Jan 31, 2019

Repository files navigation

FIRRTL parser

Parses Flexible Intermediate Representation for RTL (FIRRTL) into an Abstract Syntax Tree (AST). Intended for use with LibreSilicon Compiler (lsc).

Usage

import Data.Text

import Language.FIRRTL.Lexer
import Language.FIRRTL.Parser
import Language.FIRRTL.Syntax


newtype FIR = FIR Circuit
  deriving (Eq, Show)

parseFIR :: Text -> Either ParseError FIR
parseFIR = fmap FIR . circuit . lexer []

About

A FIR parser for Haskell.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published