forked from github/verilator
Fix $fread extra semicolon inside statements.
This commit is contained in:
parent
31223d4058
commit
05bb24df6c
2
Changes
2
Changes
@ -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
|
||||
|
||||
|
@ -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)");
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user