3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-27 23:45:50 +00:00

Add "cover" mode

This commit is contained in:
Clifford Wolf 2017-02-05 15:44:01 +01:00
parent b8fefaa25b
commit ad4c0f2198
7 changed files with 80 additions and 3 deletions

View 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