Skip to content

Commit 40c7971

Browse files
committed
SVA: sequence() methods for first_match and throughout
This adds convenience accessors for the sequence-typed operand of the SVA first_match and throughout expression classes.
1 parent 8f6b2ee commit 40c7971

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/verilog/sva_expr.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,6 +1746,16 @@ class sva_sequence_throughout_exprt : public binary_exprt
17461746
: binary_exprt(std::move(op0), ID_sva_sequence_throughout, std::move(op1))
17471747
{
17481748
}
1749+
1750+
const exprt &sequence() const
1751+
{
1752+
return op1();
1753+
}
1754+
1755+
exprt &sequence()
1756+
{
1757+
return op1();
1758+
}
17491759
};
17501760

17511761
static inline const sva_sequence_throughout_exprt &
@@ -1780,6 +1790,16 @@ class sva_sequence_first_match_exprt : public binary_exprt
17801790
std::move(action))
17811791
{
17821792
}
1793+
1794+
const exprt &sequence() const
1795+
{
1796+
return op0();
1797+
}
1798+
1799+
exprt &sequence()
1800+
{
1801+
return op0();
1802+
}
17831803
};
17841804

17851805
static inline const sva_sequence_first_match_exprt &

0 commit comments

Comments
 (0)