Skip to content

Commit dc61de4

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 8f220ab commit dc61de4

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
@@ -1785,6 +1785,16 @@ class sva_sequence_throughout_exprt : public binary_exprt
17851785
: binary_exprt(std::move(op0), ID_sva_sequence_throughout, std::move(op1))
17861786
{
17871787
}
1788+
1789+
const exprt &sequence() const
1790+
{
1791+
return op1();
1792+
}
1793+
1794+
exprt &sequence()
1795+
{
1796+
return op1();
1797+
}
17881798
};
17891799

17901800
static inline const sva_sequence_throughout_exprt &
@@ -1819,6 +1829,16 @@ class sva_sequence_first_match_exprt : public binary_exprt
18191829
std::move(action))
18201830
{
18211831
}
1832+
1833+
const exprt &sequence() const
1834+
{
1835+
return op0();
1836+
}
1837+
1838+
exprt &sequence()
1839+
{
1840+
return op0();
1841+
}
18221842
};
18231843

18241844
static inline const sva_sequence_first_match_exprt &

0 commit comments

Comments
 (0)