mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-31 00:40:10 +00:00
Add formal_bind example
Demonstrate binding SVA properties to a VHDL design. Mention example code (with snippets) in section on Verific.
This commit is contained in:
parent
5c649c8e75
commit
549c5f33f5
5 changed files with 89 additions and 0 deletions
10
docs/examples/vhd/formal_bind.sv
Normal file
10
docs/examples/vhd/formal_bind.sv
Normal file
|
@ -0,0 +1,10 @@
|
|||
module formal_bind(input clk, rst, up, down, [3:0] count);
|
||||
|
||||
initial assume(rst);
|
||||
|
||||
assert property(@(posedge clk) count != 4'd15);
|
||||
cover property(@(posedge clk) count == 4'd10);
|
||||
|
||||
endmodule
|
||||
|
||||
bind updowncount formal_bind fb_inst(.*);
|
Loading…
Add table
Add a link
Reference in a new issue