1. Jul 04, 2019
    • Schuyler Eldridge's avatar
      Add a DependencyAPI to firrtl.options.Phase · 2585bf98
      Schuyler Eldridge authored
      
      
      This adds a TransformLike mixin, DependencyAPI, that defines the basis
      of the Dependency API for Stage/Phase. DependencyAPI defines three
      members that define dependency relationships for some TransformLike
      "Foo":
      
      - "Prerequisites" define TransformLikes that should run before Foo
      - "Dependents" define TransformLikes that should run after Foo. This
        allows Foo to inject prerequisites into some other TransformLike.
      - "Invalidates" define a function that will return true if a specific
        TransformLike would be invalidated by Foo
      
      Prerequisites and Dependents are not Sets due to lack of a fast,
      immutable Set that preserves insertion order. Internally, these are
      converted to a private LinkedHashSet.
      
      Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>
      2585bf98
    • Schuyler Eldridge's avatar
      Add seeded topological sort to DiGraph · a514408c
      Schuyler Eldridge authored
      
      
      This adds a method to DiGraph called "seededLinearize". This
      generalizes the original topological sort ("linearize") to be
      parametric in an initial set of vertices. This enables the user to
      massage the DFS to produce a better topological sort if they have
      information about how the DFS should proceed.
      
      The initial set of vertices is expected to be made ordered via a
      LinkedHashSet.
      
      Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>
      a514408c
  2. Jul 03, 2019
  3. Jun 29, 2019
  4. Jun 28, 2019
  5. Jun 21, 2019
  6. Jun 19, 2019
  7. Jun 13, 2019
  8. Jun 06, 2019
  9. Jun 04, 2019
  10. May 30, 2019
  11. May 25, 2019
  12. May 10, 2019
  13. May 04, 2019
  14. Apr 30, 2019
  15. Apr 27, 2019
  16. Apr 26, 2019
    • Schuyler Eldridge's avatar
      Add ShellOption, DeletedWrapper · ef8f06f2
      Schuyler Eldridge authored
      
      
      Abstracts away option writing such that users no longer have to
      understand scopt semantics. This adds a ShellOption class and a
      HasShellOptions trait for something which provides one or more
      ShellOptions. This refactors the FIRRTL codebase to use this style of
      option specification.
      
      Adds and uses DeletedWrapper to automatically generate
      DeletedAnnotations.
      
      Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>
      ef8f06f2
    • Schuyler Eldridge's avatar
      OptionsView/Viewer typeclass canonicalizations · 47fe781c
      Schuyler Eldridge authored
      
      
      This switches the OptionsView/Viewer typeclass to use more canonical
      approaches and helper methods. This uses a context bound instead of an
      explicitly specified implicit argument. Additionally, this adds an
      apply method to OptionsView to enable more canonical use of the
      OptionsView typeclass.
      
      With this, you can now do things like `Viewer[FirrtlOptions].view` in
      addition to the old (and still available)
      `Viewer.view[FirrtlOptions]`. Uses of the latter are updated to use
      the former.
      
      Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>
      47fe781c
    • Schuyler Eldridge's avatar
      Add tests for Annotations/Options refactor · 254e7909
      Schuyler Eldridge authored
      
      
      - Add tests for DriverCompatibility.AddImplicitEmitter
      - Add tests for DriverCompatibility.AddImplicitOutputFile
      - Use a different top name in DriverSpec emit circuit tests for better
        coverage
      - Add tests for DriverCompatibility.WriteEmitted
      - Add catchWrites firrtlTests utility to intercept file writes
      - Add tests for WriteOutputAnnotations
      - Add tests for --custom-transforms reversing
      
      Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>
      254e7909
    • Schuyler Eldridge's avatar
      Add FirrtlStage, make Driver compatibility layer · b2dd0eb8
      Schuyler Eldridge authored
      This adds FirrtlStage, a reimplementation of the original FIRRTL
      Driver as a Stage. This updates the original firrtl.options package to
      implement FirrtlStage (namely, TransformLike is added) along with
      FirrtlMain. Finally, the original FIRRTL Driver is converted to a
      compatibility wrapper around FirrtlStage.
      
      For background, Stage and Phase form the basis of the Chisel/FIRRTL
      Hardware Compiler Framework (HCF). A Phase is a class that performs a
      mathematical transformation on an AnnotationSeq (in effect, a
      generalization of a FIRRTL transform). Curtly, a Stage is a Phase that
      also provides a user interface for generating annotations. By their
      construction, Phases are designed to be composed sequentially into a
      transformation pipeline.
      
      This modifies the existing options package (which provides
      Stage/Phase) to build out a type hierarchy around Stage/Phase. This
      adds TransformLike[A] which implements a mathematical transformation
      over some type A. Additionally...
      b2dd0eb8
  17. Apr 23, 2019
  18. Apr 18, 2019
  19. Apr 12, 2019
  20. Apr 11, 2019
  21. Mar 30, 2019
  22. Mar 29, 2019
  23. Mar 27, 2019
  24. Mar 26, 2019
  25. Mar 20, 2019