hdl.ir: lower domains before resolving hierarchy conflicts.
Otherwise, two subfragments with the same local clock domain would not be able to drive its clock or reset signals. This can be easily hit if using two ResetSynchronizers in one module. Fixes #265.
This commit is contained in:
parent
e9887780af
commit
9749c70730
2 changed files with 15 additions and 1 deletions
|
|
@ -540,8 +540,8 @@ class Fragment:
|
|||
|
||||
fragment = SampleLowerer()(self)
|
||||
new_domains = fragment._propagate_domains(missing_domain)
|
||||
fragment._resolve_hierarchy_conflicts()
|
||||
fragment = DomainLowerer()(fragment)
|
||||
fragment._resolve_hierarchy_conflicts()
|
||||
if ports is None:
|
||||
fragment._propagate_ports(ports=(), all_undef_as_ports=True)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue