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:
parent
b3155af5f6
commit
721f1f5ecf
16 changed files with 82 additions and 19 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue