|
|
@@ -177,6 +177,15 @@ def test_temperature_store_is_single_block_ram_candidate() -> None:
|
|
|
assert "module prod2u_p4_temperature_bram_sim" in source
|
|
|
|
|
|
|
|
|
+def test_temperature_store_formal_only_constrains_valid_read_data() -> None:
|
|
|
+ source = (
|
|
|
+ ROOT / "tests/formal/prod2u_p4_temperature_store_contract_formal.v"
|
|
|
+ ).read_text(encoding="ascii")
|
|
|
+
|
|
|
+ assert "$past(!rd_req)" not in source
|
|
|
+ assert "$stable(rd_data)" not in source
|
|
|
+
|
|
|
+
|
|
|
@pytest.mark.parametrize(
|
|
|
"values",
|
|
|
[
|