mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 14:17:27 +02:00
Added basic support for $expect cells
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user