mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-07 05:41:24 +00:00
Update remaining quickstart examples
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
45a11da8ea
commit
2fa29974dd
7 changed files with 22 additions and 14 deletions
17
docs/examples/quickstart/cover.sv
Normal file
17
docs/examples/quickstart/cover.sv
Normal file
|
@ -0,0 +1,17 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue