self._prepared = True
fragment = Fragment.get(elaboratable, self)
- fragment.create_missing_domains(self.create_missing_domain)
+ fragment.create_missing_domains(self.create_missing_domain, platform=self)
def add_pin_fragment(pin, pin_fragment):
pin_fragment = Fragment.get(pin_fragment, self)
subfrag._propagate_domains_down()
- def create_missing_domains(self, missing_domain):
+ def create_missing_domains(self, missing_domain, *, platform=None):
from .xfrm import DomainCollector
collector = DomainCollector()
# and there was no chance to add any logic driving it.
new_domains.append(value)
else:
- new_fragment = Fragment.get(value, platform=None)
+ new_fragment = Fragment.get(value, platform=platform)
if domain_name not in new_fragment.domains:
defined = new_fragment.domains.keys()
raise DomainError(