forked from github/verilator
Fix false warning on backward indexing, bug1507.
This commit is contained in:
parent
3469c78153
commit
900115bb2d
2
Changes
2
Changes
@ -14,6 +14,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
|
||||
|
||||
**** Fix config_rev revision detection on old versions.
|
||||
|
||||
**** Fix false warning on backward indexing, bug1507. [Hao Shi]
|
||||
|
||||
|
||||
* Verilator 4.018 2019-08-29
|
||||
|
||||
|
@ -755,7 +755,8 @@ private:
|
||||
<<" outside data type's '"<< adtypep->declRange() << "'");
|
||||
}
|
||||
else if ((nodep->declRange().littleEndian()
|
||||
!= adtypep->declRange().littleEndian())) {
|
||||
!= adtypep->declRange().littleEndian())
|
||||
&& nodep->declRange().hi() != nodep->declRange().lo()) {
|
||||
nodep->v3error("Slice selection '"<< nodep->declRange() << "'"
|
||||
<<" has backward indexing versus data type's '"
|
||||
<<adtypep->declRange() << "'");
|
||||
|
@ -15,6 +15,8 @@ module t (/*AUTOARG*/);
|
||||
|
||||
array_assign[4:3] = '{32'd4, 32'd3};
|
||||
array_assign[1:-1] = '{32'd4, 32'd3};
|
||||
array_assign[1:1] = '{32'd4}; // Ok
|
||||
larray_assign[1:1] = '{32'd4}; // Ok
|
||||
|
||||
$write("*-* All Finished *-*\n");
|
||||
$finish;
|
||||
|
Loading…
Reference in New Issue
Block a user