Skip to content

Commit

Permalink
[FIRRTL] Support probes in LowerLayers (#6554)
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]>
Co-authored-by: Robert Young <[email protected]>
  • Loading branch information
seldridge and rwy7 authored Feb 13, 2024
1 parent 91cfdbe commit 208058c
Show file tree
Hide file tree
Showing 5 changed files with 743 additions and 52 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 208058c

Please sign in to comment.