vcs: remove bracket of $fatal (#342)

Palladium disallow empty argument for $fatal(). We remove bracket
and declare it as TB_IMPORT
This commit is contained in:
Kunlin You 2024-04-16 12:02:56 +08:00 committed by GitHub
parent e7e7560a12
commit 92311228cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
* $test$plusargs TB_IMPORT
* $value$plusargs TB_IMPORT
* $finish TB_IMPORT
* $fatal TB_IMPORT
* $random TB_IMPORT
* $fwrite GFIFO

View File

@ -99,7 +99,7 @@ initial begin
`endif
else begin
$display("unknown wave file format, want [vpd, fsdb] but:%s\n", wave_type);
$fatal();
$fatal;
end
end
`endif
@ -156,7 +156,7 @@ initial begin
end
else begin
$display("workload switch is enabled but the workload list is not set");
$fatal();
$fatal;
end
`endif // ENABLE_WORKLOAD_SWITCH
`endif // TB_NO_DPIC
@ -286,13 +286,13 @@ always @(posedge clock) begin
end
else begin
$display("DIFFTEST INIT FAILED");
$fatal();
$fatal;
end
end
end
else if (simv_result == `SIMV_FAIL) begin
$display("DIFFTEST FAILED at cycle %d", n_cycles);
$fatal();
$fatal;
end
else if (simv_result == `SIMV_DONE) begin
$display("DIFFTEST WORKLOAD DONE at cycle %d", n_cycles);