Skip to content

Commit

Permalink
Fix synthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
tilk committed Sep 30, 2024
1 parent f4c15bd commit f532342
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amaranth-stubs
3 changes: 2 additions & 1 deletion scripts/synthesize.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import argparse

from amaranth.build import Platform
from amaranth.build.res import PortGroup
from amaranth import *
from amaranth.lib.wiring import Component, Flow, Out, connect, flipped

Expand Down Expand Up @@ -61,7 +62,7 @@ def elaborate(self, platform: Platform):
m = Module()

pins = platform.request(self.name, self.number)
assert isinstance(pins, Record)
assert isinstance(pins, PortGroup)

for hier_name, member, v in self.interface.signature.flatten(self.interface):
name = "__".join(str(x) for x in hier_name)
Expand Down

0 comments on commit f532342

Please sign in to comment.