mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
After reading the SV spec, using non-standard predict() instead of expect()
This commit is contained in:
@@ -1305,18 +1305,10 @@ endmodule
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
||||
module \$expect (A, EN);
|
||||
module \$predict (A, EN);
|
||||
|
||||
input A, EN;
|
||||
|
||||
`ifndef SIMLIB_NOCHECKS
|
||||
always @* begin
|
||||
if (A === 1'b1 && EN === 1'b1) begin
|
||||
$display("Expectation %m passed.");
|
||||
end
|
||||
end
|
||||
`endif
|
||||
|
||||
endmodule
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user