mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-22 12:55:30 +00:00
Add "cover" mode
This commit is contained in:
parent
b8fefaa25b
commit
ad4c0f2198
7 changed files with 80 additions and 3 deletions
1
docs/examples/quickstart/.gitignore
vendored
1
docs/examples/quickstart/.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
demo
|
||||
memory
|
||||
prove
|
||||
cover
|
||||
|
|
12
docs/examples/quickstart/cover.sby
Normal file
12
docs/examples/quickstart/cover.sby
Normal file
|
@ -0,0 +1,12 @@
|
|||
[options]
|
||||
mode cover
|
||||
|
||||
[engines]
|
||||
smtbmc
|
||||
|
||||
[script]
|
||||
read_verilog -formal cover.v
|
||||
prep -top top
|
||||
|
||||
[files]
|
||||
cover.v
|
13
docs/examples/quickstart/cover.v
Normal file
13
docs/examples/quickstart/cover.v
Normal file
|
@ -0,0 +1,13 @@
|
|||
module top (
|
||||
input clk,
|
||||
input [7:0] din
|
||||
);
|
||||
reg [31:0] state = 0;
|
||||
|
||||
always @(posedge clk) begin
|
||||
state <= ((state << 5) + state) ^ din;
|
||||
end
|
||||
|
||||
cover property (state == 'd 12345678);
|
||||
cover property (state == 'h 12345678);
|
||||
endmodule
|
|
@ -8,7 +8,7 @@ formal tasks:
|
|||
|
||||
* Bounded verification of safety properties (assertions)
|
||||
* Unbounded verification of safety properties
|
||||
* Generation of test benches from cover statements [TBD]
|
||||
* Generation of test benches from cover statements
|
||||
* Verification of liveness properties [TBD]
|
||||
* Formal equivalence checking [TBD]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue