mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
After reading the SV spec, using non-standard predict() instead of expect()
This commit is contained in:
parent
721f1f5ecf
commit
d7763634b6
16 changed files with 28 additions and 32 deletions
|
@ -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
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue