mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Internals: Start cleaning up dtype()-> in AstVar
This commit is contained in:
parent
f59467b897
commit
3edbeb8902
@ -140,7 +140,7 @@ private:
|
||||
if (!varp->dtypep()->rangep()->msbp()->castConst()
|
||||
|| !varp->dtypep()->rangep()->lsbp()->castConst())
|
||||
varp->v3fatalSrc("Non-constant variable range; errored earlier"); // in constifyParam(varp)
|
||||
if (varp->littleEndian()) {
|
||||
if (varp->dtypep()->rangep()->littleEndian()) {
|
||||
// reg [1:3] was swapped to [3:1] (lsbEndianedp==3) and needs a SUB(3,under)
|
||||
AstNode* newp = newSubNeg(varp->msb(), underp);
|
||||
return newp;
|
||||
|
Loading…
Reference in New Issue
Block a user