You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment by smunaut Monday Jan 20, 2020 at 08:54 GMT
Not sure if this is the correct fix, but this seems to work for me :
diff --git a/nmigen/hdl/ir.py b/nmigen/hdl/ir.py
index 26dec85..2b8b74c 100644
--- a/nmigen/hdl/ir.py+++ b/nmigen/hdl/ir.py@@ -142,7 +142,7 @@ class Fragment:
def add_domains(self, *domains):
for domain in flatten(domains):
assert isinstance(domain, ClockDomain)
- assert domain.name not in self.domains+ assert (domain.name not in self.domains) or (self.domains[domain.name] == domain)
self.domains[domain.name] = domain
def iter_domains(self):
Saturday Jan 18, 2020 at 19:39 GMT
Originally opened as m-labs/nmigen#307
Since a7be3b4, this code fails :
Code :
Error :
The text was updated successfully, but these errors were encountered: