3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Added basic support for $expect cells

This commit is contained in:
Clifford Wolf 2016-07-13 16:56:17 +02:00
parent b3155af5f6
commit 721f1f5ecf
16 changed files with 82 additions and 19 deletions

View file

@ -1305,6 +1305,22 @@ endmodule
// --------------------------------------------------------
module \$expect (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
// --------------------------------------------------------
module \$equiv (A, B, Y);
input A, B;