mirror of
https://github.com/YosysHQ/sby.git
synced 2026-04-24 06:53:32 +00:00
Tests for --keep-going
This also changes the test Makefile to run `.check.py` files after running the corresponding `.sby` file to allow more precise testing of the keep going feature.
This commit is contained in:
parent
7824460e27
commit
2d3d96478a
11 changed files with 182 additions and 1 deletions
17
tests/keepgoing_same_step.sv
Normal file
17
tests/keepgoing_same_step.sv
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
module test (
|
||||
input clk, a
|
||||
);
|
||||
reg [7:0] counter = 0;
|
||||
|
||||
always @(posedge clk) begin
|
||||
counter <= counter + 1;
|
||||
end
|
||||
|
||||
always @(posedge clk) begin
|
||||
if (counter == 3) begin
|
||||
assert(a);
|
||||
assert(!a);
|
||||
assert(0);
|
||||
end
|
||||
end
|
||||
endmodule
|
||||
Loading…
Add table
Add a link
Reference in a new issue