Packages

o

firrtl

Parser

object Parser extends LazyLogging

Source
Parser.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parser
  2. LazyLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AppendInfo(filename: String) extends InfoMode with Product with Serializable
  2. case class GenInfo(filename: String) extends InfoMode with Product with Serializable
  3. sealed abstract class InfoMode extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def getLogger: Logger
    Definition Classes
    LazyLogging
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def parse(text: String, infoMode: InfoMode): Circuit
  18. def parse(lines: Seq[String], infoMode: InfoMode): Circuit
  19. def parse(text: String): Circuit

    Parse the concrete syntax of a FIRRTL firrtl.ir.Circuit, e.g.

    Parse the concrete syntax of a FIRRTL firrtl.ir.Circuit, e.g.

    """circuit Top:
      |  module Top:
      |    input x: UInt
      |    node y = x
      |""".stripMargin

    becomes:

    Circuit(
      NoInfo,
      Seq(Module(
        NoInfo,
        "Top",
        Seq(Port(NoInfo, "x", Input, UIntType(UnknownWidth))),
        Block(DefNode(NoInfo, "y", Ref("x", UnknownType)))
      )),
      "Top"
    )
    text

    concrete Circuit syntax

  20. def parse(lines: Seq[String]): Circuit
  21. def parse(lines: Iterator[String], infoMode: InfoMode = UseInfo): Circuit

    Takes Iterator over lines of FIRRTL, returns FirrtlNode (root node is Circuit)

  22. def parseCharStream(charStream: CharStream, infoMode: InfoMode): Circuit

    Parses a org.antlr.v4.runtime.CharStream and returns a parsed Circuit

  23. def parseDefModule(module: String): DefModule

    Parse the concrete syntax of a FIRRTL firrtl.ir.DefModule, e.g.

    Parse the concrete syntax of a FIRRTL firrtl.ir.DefModule, e.g.

    """module Top:
      |  input x: UInt
      |  node y = x
      |""".stripMargin

    becomes:

    Module(
      NoInfo,
      "Top",
      Seq(Port(NoInfo, "x", Input, UIntType(UnknownWidth))),
      Block(DefNode(NoInfo, "y", Ref("x", UnknownType)))
    )
    module

    concrete DefModule syntax

  24. def parseExpression(expr: String): Expression

    Parse the concrete syntax of a FIRRTL firrtl.ir.Expression, e.g.

    Parse the concrete syntax of a FIRRTL firrtl.ir.Expression, e.g. "add(x, y)" becomes:

    DoPrim(Add, Seq(Ref("x", UnknownType), Ref("y", UnknownType), Nil, UnknownType)
    expr

    concrete Expression syntax

  25. def parseFile(filename: String, infoMode: InfoMode): Circuit

    Parses a file in a given filename and returns a parsed Circuit

  26. def parseInfo(info: String): Info

    Parse the concrete syntax of a FIRRTL firrtl.ir.Info, e.g.

    Parse the concrete syntax of a FIRRTL firrtl.ir.Info, e.g. "@[FPU.scala 509:25]" becomes:

    FileInfo("FPU.scala 509:25")
    info

    concrete Info syntax

  27. def parsePort(port: String): Port

    Parse the concrete syntax of a FIRRTL firrtl.ir.Port, e.g.

    Parse the concrete syntax of a FIRRTL firrtl.ir.Port, e.g. "input x: UInt" becomes:

    Port(NoInfo, "x", Input, UIntType(UnknownWidth))
    port

    concrete Port syntax

  28. def parseStatement(statement: String): Statement

    Parse the concrete syntax of a FIRRTL firrtl.ir.Statement, e.g.

    Parse the concrete syntax of a FIRRTL firrtl.ir.Statement, e.g. "wire x: UInt" becomes:

    DefWire(NoInfo, "x", UIntType(UnknownWidth))
    statement

    concrete Statement syntax

  29. def parseString(text: String, infoMode: InfoMode): Circuit

    Parses a String and returns a parsed Circuit

  30. def parseType(tpe: String): Type

    Parse the concrete syntax of a FIRRTL firrtl.ir.Type, e.g.

    Parse the concrete syntax of a FIRRTL firrtl.ir.Type, e.g. "UInt<3>" becomes:

    UIntType(IntWidth(BigInt(3)))
    tpe

    concrete Type syntax

  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. object IgnoreInfo extends InfoMode with Product with Serializable
  37. object UseInfo extends InfoMode with Product with Serializable

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped