forked from github/verilator
Fix class stringification on wide arrays (#3312).
This commit is contained in:
parent
c3dd6f5344
commit
4ba3bff87f
1
Changes
1
Changes
@ -19,6 +19,7 @@ Verilator 4.219 devel
|
||||
* Add trace dumpvars() call for selective runtime tracing (#3322). [Shunyao CAD]
|
||||
* Fix skipping public enum values with four-state values (#3303).
|
||||
* Fix $readmem file not found to be warning not error (#3310). [Alexander Grobman]
|
||||
* Fix class stringification on wide arrays (#3312). [Iru Cai]
|
||||
* Fix public function arguments that are arrayed (#3316). [pawel256]
|
||||
* Fix compile error with --trace-fst --sc (#3332). [leavinel]
|
||||
* Fix crash in recursive module inlining (#3324). [Larry Doolittle]
|
||||
|
@ -71,7 +71,7 @@ static void makeToStringMiddle(AstClass* nodep) {
|
||||
comma = ", ";
|
||||
stmt += itemp->origNameProtect();
|
||||
stmt += ":\" + ";
|
||||
if (itemp->isWide()) {
|
||||
if (VN_IS(itemp->dtypep()->skipRefp(), BasicDType) && itemp->isWide()) {
|
||||
stmt += "VL_TO_STRING_W(";
|
||||
stmt += cvtToStr(itemp->widthWords());
|
||||
stmt += ", ";
|
||||
|
@ -1,4 +1,4 @@
|
||||
''{b:'h1, i:'h2a, carray4:'{'h11, 'h22, 'h33, 'h44} , name:"object_name"}'
|
||||
''{b:'h1, i:'h2a, carray4:'{'h911, 'h922, 'h933, 'h944} , name:"object_name"}'
|
||||
''{b:'h1, i:'h2a, carray4:'{'h11, 'h22, 'h33, 'h44} , cwide:'{'h0, 'h0} , name:"object_name"}'
|
||||
''{b:'h1, i:'h2a, carray4:'{'h911, 'h922, 'h933, 'h944} , cwide:'{'h0, 'h0} , name:"object_name"}'
|
||||
DEBUG: object_name (@0) message
|
||||
*-* All Finished *-*
|
||||
|
@ -15,6 +15,7 @@ class Cls;
|
||||
bit b;
|
||||
int i;
|
||||
bit [15:0] carray4 [4];
|
||||
bit [64:0] cwide[2];
|
||||
string name;
|
||||
task debug();
|
||||
$display("DEBUG: %s (@%0t) %s", this.name, $realtime, "message");
|
||||
|
Loading…
Reference in New Issue
Block a user