compat.fhdl.module: fix typo.
authorwhitequark <cz@m-labs.hk>
Sat, 26 Jan 2019 23:08:55 +0000 (23:08 +0000)
committerwhitequark <cz@m-labs.hk>
Sat, 26 Jan 2019 23:08:55 +0000 (23:08 +0000)
nmigen/compat/fhdl/module.py

index dca892ee6ec3553e2a3563c9df97033701920a4b..e81f2b6b8ae034d0e2585c812b4af1ba138e7d7e 100644 (file)
@@ -54,7 +54,7 @@ class _CompatModuleSync(_CompatModuleProxy):
         return _CompatModuleSyncCD(self._cm, name)
 
     def __setattr__(self, name, value):
-        if not isinstance(value, _ModuleSyncCD):
+        if not isinstance(value, _CompatModuleSyncCD):
             raise AttributeError("Attempted to assign sync property - use += instead")