mirror of
https://github.com/verilator/verilator.git
synced 2026-08-22 05:57:29 +02:00
Fix / multi-argument ordering, bug816.
This commit is contained in:
@@ -19,6 +19,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
|||||||
|
|
||||||
**** Fix optional parameter keyword in module #(), bug810. [Iztok Jeras]
|
**** Fix optional parameter keyword in module #(), bug810. [Iztok Jeras]
|
||||||
|
|
||||||
|
**** Fix $warning/$error multi-argument ordering, bug816. [Jonathon Donaldson]
|
||||||
|
|
||||||
|
|
||||||
* Verilator 3.862 2014-06-10
|
* Verilator 3.862 2014-06-10
|
||||||
|
|
||||||
|
|||||||
+6
-3
@@ -61,10 +61,13 @@ private:
|
|||||||
void replaceDisplay(AstDisplay* nodep, const string& prefix) {
|
void replaceDisplay(AstDisplay* nodep, const string& prefix) {
|
||||||
nodep->displayType(AstDisplayType::DT_WRITE);
|
nodep->displayType(AstDisplayType::DT_WRITE);
|
||||||
nodep->fmtp()->text(assertDisplayMessage(nodep, prefix, nodep->fmtp()->text()));
|
nodep->fmtp()->text(assertDisplayMessage(nodep, prefix, nodep->fmtp()->text()));
|
||||||
AstNode* timesp = nodep->fmtp()->exprsp(); if (timesp) timesp->unlinkFrBack();
|
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
timesp = timesp->addNext(new AstTime(nodep->fileline()));
|
AstNode* timenewp = new AstTime(nodep->fileline());
|
||||||
nodep->fmtp()->exprsp(timesp);
|
if (AstNode* timesp = nodep->fmtp()->exprsp()) {
|
||||||
|
timesp->unlinkFrBackWithNext();
|
||||||
|
timenewp->addNext(timesp);
|
||||||
|
}
|
||||||
|
nodep->fmtp()->exprsp(timenewp);
|
||||||
if (!nodep->fmtp()->scopeNamep() && nodep->fmtp()->formatScopeTracking()) {
|
if (!nodep->fmtp()->scopeNamep() && nodep->fmtp()->formatScopeTracking()) {
|
||||||
nodep->fmtp()->scopeNamep(new AstScopeName(nodep->fileline()));
|
nodep->fmtp()->scopeNamep(new AstScopeName(nodep->fileline()));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ module t (/*AUTOARG*/
|
|||||||
assert (0) else $info;
|
assert (0) else $info;
|
||||||
assert (0) else $info("Info message");
|
assert (0) else $info("Info message");
|
||||||
assert (0) else $info("Info message, cyc=%d", cyc);
|
assert (0) else $info("Info message, cyc=%d", cyc);
|
||||||
InWarningBlock: assert (0) else $warning("Warning....");
|
InWarningBlock: assert (0) else $warning("Warning.... 1.0=%f 2.0=%f", 1.0, 2.0);
|
||||||
InErrorBlock: assert (0) else $error("Error....");
|
InErrorBlock: assert (0) else $error("Error....");
|
||||||
assert (0) else $fatal(1,"Fatal....");
|
assert (0) else $fatal(1,"Fatal....");
|
||||||
`endif
|
`endif
|
||||||
|
|||||||
Reference in New Issue
Block a user