compat: import genlib.record from Migen.

This commit is contained in:
whitequark 2018-12-18 20:04:22 +00:00
parent a90748303c
commit 0f2c7e7161
4 changed files with 201 additions and 2 deletions

View file

@ -74,7 +74,8 @@ class AbstractValueTransformer(metaclass=ABCMeta):
new_value = self.on_Slice(value)
elif type(value) is Part:
new_value = self.on_Part(value)
elif type(value) is Cat:
elif isinstance(value, Cat):
# Uses `isinstance()` and not `type() is` because nmigen.compat requires it.
new_value = self.on_Cat(value)
elif type(value) is Repl:
new_value = self.on_Repl(value)