Fix $fread extra semicolon inside statements.

This commit is contained in:
Wilson Snyder 2021-01-26 22:20:16 -05:00
parent 31223d4058
commit 05bb24df6c
3 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
**** Fix TIMESCALE warnings on primitives (#2763). [Xuanqi]
**** Fix $fread extra semicolon inside statements. [Leendert van Doorn]
* Verilator 4.108 2021-01-10

View File

@ -748,7 +748,7 @@ public:
} else {
puts(cvtToStr(array_size));
}
puts(");\n");
puts(")");
}
virtual void visit(AstSysFuncAsTask* nodep) override {
if (!nodep->lhsp()->isWide()) puts("(void)");

View File

@ -79,7 +79,8 @@ module t;
clear;
code = $fread(r_upb, file, 15); `checkd(code, 6);
code = $fread(r_ups, file, 15, 2); `checkd(code, 4);
// Bug where fread in if() broke.
if ($fread(r_ups, file, 15, 2) != 4) $stop;
dump;
$write("*-* All Finished *-*\n");