Skip to content

Commit

Permalink
add d8 to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Jan 5, 2024
1 parent e638ff5 commit 354db92
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
d13_dir = fpga_debug_dir / "axis-frame-len-d13"
d12_dir = fpga_debug_dir / "axis-fifo-d12"
d11_dir = fpga_debug_dir / "axis-frame-fifo-d11"
d8_dir = fpga_debug_dir / "axis-switch-d8"


def run_synth(project_path: Path, bug: str, testbench: str = None, solver='z3', init='any', incremental=True, timeout=None, old_synthesizer=False):
Expand Down Expand Up @@ -149,6 +150,11 @@ def test_d11(self):
# resets `drop_frame`, but not `wr_ptr_cur` because it is not required to pass the test
self.assertEqual(changes, 1)

def test_d8(self):
""" AXIS Switch with wrong index. Should be fixable by simple literal replacement... """
changes = self.synth_success(d8_dir, "d8", solver="yices2", init="zero", incremental=True, timeout=60)
self.assertEqual(changes, 1)

class TestCirFixBenchmarksIncremental(SynthesisTest):
""" Makes sure that we can handle all benchmarks from the cirfix paper in incremental mode. """
solver: str = 'bitwuzla'
Expand Down

0 comments on commit 354db92

Please sign in to comment.