Fix segfault on multidimensional dotted arrays, bug607.

This commit is contained in:
Wilson Snyder 2013-01-25 21:27:19 -05:00
parent 498ab23355
commit e1eb41fe77
3 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,8 @@ indicates the contributor was also the author of the fix; Thanks!
**** Fix signed/unsigned parameter misconversion, bug606. [Jeremy Bennett]
**** Fix segfault on multidimensional dotted arrays, bug607. [Jie Xu]
**** Fix package logic var compile error.

View File

@ -1563,6 +1563,7 @@ private:
m_ds.init(m_curSymp);
nodep->rhsp()->iterateAndNext(*this);
nodep->thsp()->iterateAndNext(*this);
nodep->attrp()->iterateAndNext(*this);
}
m_ds = lastStates;
}

View File

@ -21,10 +21,12 @@ module t (/*AUTOARG*/
);
input clk;
wire [71:0] ctrl;
wire [7:0] cl; // this line is added
memory #(.words(72)) i_memory (.clk (clk));
assign ctrl = i_memory.mem[0];
assign cl = i_memory.mem[0][7:0]; // and this line
endmodule