mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Added $assert/$assume support to AIGER back-end
This commit is contained in:
parent
37760541bd
commit
a44cc7a3d1
3 changed files with 53 additions and 12 deletions
|
@ -4,7 +4,7 @@ module demo(input clk, reset, ctrl);
|
|||
initial counter[NBITS-2] = 0;
|
||||
initial counter[0] = 1;
|
||||
always @(posedge clk) begin
|
||||
counter <= reset ? 0 : ctrl ? counter + 1 : counter - 1;
|
||||
counter <= reset ? 1 : ctrl ? counter + 1 : counter - 1;
|
||||
assume(counter != 0);
|
||||
assume(counter != 1 << (NBITS-1));
|
||||
assert(counter != (1 << NBITS)-1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue