mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Added $assume cell type
This commit is contained in:
parent
27a918eadf
commit
b005eedf36
5 changed files with 57 additions and 2 deletions
|
@ -1163,7 +1163,24 @@ input A, EN;
|
|||
`ifndef SIMLIB_NOCHECKS
|
||||
always @* begin
|
||||
if (A !== 1'b1 && EN === 1'b1) begin
|
||||
$display("Assertation failed!");
|
||||
$display("Assertation %m failed!");
|
||||
$stop;
|
||||
end
|
||||
end
|
||||
`endif
|
||||
|
||||
endmodule
|
||||
|
||||
// --------------------------------------------------------
|
||||
|
||||
module \$assume (A, EN);
|
||||
|
||||
input A, EN;
|
||||
|
||||
`ifndef SIMLIB_NOCHECKS
|
||||
always @* begin
|
||||
if (A !== 1'b1 && EN === 1'b1) begin
|
||||
$display("Assumption %m failed!");
|
||||
$stop;
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue