forked from github/verilator
Fix display has no time units on class function (#3116).
This commit is contained in:
parent
a8b480559d
commit
d384a69877
1
Changes
1
Changes
@ -13,6 +13,7 @@ Verilator 4.213 devel
|
||||
|
||||
* Include processor information in verilator_gantt data file.
|
||||
* Fix verilator_profcfunc profile accounting (#3115).
|
||||
* Fix display has no time units on class function (#3116). [Damien Pretet]
|
||||
|
||||
|
||||
Verilator 4.212 2021-09-01
|
||||
|
@ -1338,7 +1338,7 @@ void AstNodeCoverOrAssert::dump(std::ostream& str) const {
|
||||
}
|
||||
void AstDisplay::dump(std::ostream& str) const {
|
||||
this->AstNodeStmt::dump(str);
|
||||
// str<<" "<<displayType().ascii();
|
||||
// str << " " << displayType().ascii();
|
||||
}
|
||||
void AstEnumItemRef::dump(std::ostream& str) const {
|
||||
this->AstNodeMath::dump(str);
|
||||
|
@ -132,6 +132,8 @@ void V3LinkLevel::timescaling(const ModVec& mods) {
|
||||
v3Global.rootp()->timeprecisionMerge(v3Global.rootp()->fileline(),
|
||||
VTimescale(VTimescale::TS_DEFAULT));
|
||||
}
|
||||
|
||||
// Classes under package have timescale propaged in V3LinkParse
|
||||
}
|
||||
|
||||
//######################################################################
|
||||
|
@ -504,7 +504,8 @@ private:
|
||||
{
|
||||
// Module: Create sim table for entire module and iterate
|
||||
cleanFileline(nodep);
|
||||
//
|
||||
// Classes inherit from upper package
|
||||
if (m_modp && nodep->timeunit().isNone()) nodep->timeunit(m_modp->timeunit());
|
||||
m_modp = nodep;
|
||||
m_genblkAbove = 0;
|
||||
m_genblkNum = 0;
|
||||
|
@ -1,3 +1,4 @@
|
||||
''{b:'h1, i:'h2a, carray4:'{'h11, 'h22, 'h33, 'h44} }'
|
||||
''{b:'h1, i:'h2a, carray4:'{'h911, 'h922, 'h933, 'h944} }'
|
||||
''{b:'h1, i:'h2a, carray4:'{'h11, 'h22, 'h33, 'h44} , name:"object_name"}'
|
||||
''{b:'h1, i:'h2a, carray4:'{'h911, 'h922, 'h933, 'h944} , name:"object_name"}'
|
||||
DEBUG: object_name (@0) message
|
||||
*-* All Finished *-*
|
||||
|
@ -15,6 +15,10 @@ class Cls;
|
||||
bit b;
|
||||
int i;
|
||||
bit [15:0] carray4 [4];
|
||||
string name;
|
||||
task debug();
|
||||
$display("DEBUG: %s (@%0t) %s", this.name, $realtime, "message");
|
||||
endtask
|
||||
endclass
|
||||
|
||||
module t (/*AUTOARG*/);
|
||||
@ -23,6 +27,7 @@ module t (/*AUTOARG*/);
|
||||
c = new;
|
||||
c.b = '1;
|
||||
c.i = 42;
|
||||
c.name = "object_name";
|
||||
|
||||
c.carray4[0] = 16'h11;
|
||||
c.carray4[1] = 16'h22;
|
||||
@ -33,6 +38,8 @@ module t (/*AUTOARG*/);
|
||||
c.carray4 = '{16'h911, 16'h922, 16'h933, 16'h944};
|
||||
$display("'%p'", c);
|
||||
|
||||
c.debug();
|
||||
|
||||
$write("*-* All Finished *-*\n");
|
||||
$finish;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user