Packages

o

firrtl

Parser

object Parser extends LazyLogging

Source
Parser.scala
Linear Supertypes
Content Hierarchy
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() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def getLogger: Logger
    Definition Classes
    LazyLogging
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def parse(text: String, infoMode: InfoMode): Circuit
  17. def parse(lines: Seq[String], infoMode: InfoMode): Circuit
  18. 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

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

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

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

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

  22. 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

  23. 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

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

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

  25. 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

  26. 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

  27. 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

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

    Parses a String and returns a parsed Circuit

  29. 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

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

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped