compat: import genlib.record from Migen.
This commit is contained in:
parent
a90748303c
commit
0f2c7e7161
4 changed files with 201 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue