Skip to content

Commit

Permalink
[FIRRTL] Support probes in LowerLayers
Browse files Browse the repository at this point in the history
Updates to LowerLayers to support driving layer-associated probes.

Signed-off-by: Schuyler Eldridge <[email protected]>
  • Loading branch information
seldridge authored and rwy7 committed Feb 8, 2024
1 parent dab7c4b commit f47ba5f
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 49 deletions.
6 changes: 6 additions & 0 deletions include/circt/Dialect/FIRRTL/FIRRTLTypesImpl.td
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,12 @@ def RefImpl : FIRRTLImplType<"Ref",
let extraClassDeclaration = [{
/// Return the recursive properties of the type.
RecursiveTypeProperties getRecursiveTypeProperties() const;

RefType removeLayer() const {
if (getLayer() == nullptr)
return *this;
return get(getType(), getForceable());
}
}];
}

Expand Down
Loading

0 comments on commit f47ba5f

Please sign in to comment.