3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-13 16:48:44 +00:00
sby/docs/examples/quickstart/cover.sv
Clifford Wolf 2fa29974dd Update remaining quickstart examples
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-06-29 18:21:38 +02:00

18 lines
274 B
Systemverilog

module top (
input clk,
input [7:0] din
);
reg [31:0] state = 0;
always @(posedge clk) begin
state <= ((state << 5) + state) ^ din;
end
`ifdef FORMAL
always @(posedge clk) begin
cover (state == 'd 12345678);
cover (state == 'h 12345678);
end
`endif
endmodule