Skip to content

Commit

Permalink
[FIRRTL] handle testbench dir annotation in combination with dut anno…
Browse files Browse the repository at this point in the history
…tation (#2382)

Get files in the correct directory.
  • Loading branch information
darthscsi authored Dec 25, 2021
1 parent 7bdd9da commit bd80437
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 71 deletions.
3 changes: 3 additions & 0 deletions include/circt/Dialect/FIRRTL/InstanceGraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ class InstanceGraph {
/// InstanceOp.getReferencedModule() will be a linear search through the IR.
Operation *getReferencedModule(InstanceOp op);

/// Check if child is instantiated by a parent.
bool isAncestor(FModuleLike child, FModuleOp parent);

/// Iterate through all modules.
using iterator = NodeIterator;
iterator begin() { return nodes.begin(); }
Expand Down
Loading

0 comments on commit bd80437

Please sign in to comment.