Skip to content

Commit

Permalink
Merge pull request #25 from kivikakk/fix-unused-elaboratable
Browse files Browse the repository at this point in the history
test_ucode: address UnusedElaboratable warning.
  • Loading branch information
cr1901 committed Sep 23, 2024
1 parent 27628f8 commit d530daf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/sim/test_ucode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
import enum

from amaranth import Fragment
from io import StringIO

from sentinel.ucoderom import UCodeROM
Expand Down Expand Up @@ -36,7 +37,8 @@ class Bar(enum.Enum):
@pytest.mark.clks((1.0 / 12e6,))
def test_ucode_layout_gen(sim_mod):
_, m = sim_mod
m.elaborate(None)
# Use Fragment.get to ensure the Module is marked as used.
Fragment.get(m, None)


@pytest.mark.module(UCodeROM(main_file=StringIO(M5META_TEST_FILE),
Expand Down

0 comments on commit d530daf

Please sign in to comment.