mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 12:17:35 +00:00
Support inside range with implicit type conversion (#5026)
Signed-off-by: Arkadiusz Kozdra <akozdra@antmicro.com>
This commit is contained in:
parent
1ed5557d2d
commit
f645382f11
@ -2550,7 +2550,9 @@ class WidthVisitor final : public VNVisitor {
|
||||
EXTEND_EXP);
|
||||
for (AstNode *nextip, *itemp = nodep->itemsp(); itemp; itemp = nextip) {
|
||||
nextip = itemp->nextp(); // iterate may cause the node to get replaced
|
||||
iterateCheck(nodep, "Inside Item", itemp, CONTEXT_DET, FINAL, subDTypep, EXTEND_EXP);
|
||||
// InsideRange will get replaced with Lte&Gte and finalized later
|
||||
if (!VN_IS(itemp, InsideRange))
|
||||
iterateCheck(nodep, "Inside Item", itemp, CONTEXT_DET, FINAL, subDTypep, EXTEND_EXP);
|
||||
}
|
||||
|
||||
if (debug() >= 9) nodep->dumpTree("- inside-in: ");
|
||||
|
@ -57,6 +57,7 @@ module t;
|
||||
`checkh ((4'd3 inside {[4'd1:4'd2], [4'd3:4'd5]}), 1'b1);
|
||||
`checkh ((4'd4 inside {[4'd1:4'd2], [4'd3:4'd5]}), 1'b1);
|
||||
`checkh ((4'd5 inside {[4'd1:4'd2], [4'd3:4'd5]}), 1'b1);
|
||||
`checkh ((4.0 inside {[4'd1:4'd2], [4'd3:4'd5]}), 1'b1);
|
||||
//
|
||||
// Unsupported $ bound
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user