lib.wiring: allow reset-less signals in interfaces.
This check was originally added out of abundance of caution, but since then it was observed that reset-less-ness is purely an implementation detail (see #1220), and furthermore it interferes with adaptation of `FIFOInterface`` signals (where `[rw]_data` are reset-less) for RFC 61.
This commit is contained in:
parent
606ebcd7a9
commit
3c6f46717b
3 changed files with 5 additions and 8 deletions
|
|
@ -453,10 +453,10 @@ class SignatureTestCase(unittest.TestCase):
|
|||
r"^'obj\.a' is expected to have the initial value 1, but it has the initial value 0$",
|
||||
sig=Signature({"a": In(1, init=1)}),
|
||||
obj=NS(a=Signal(1)))
|
||||
self.assertNotCompliant(
|
||||
r"^'obj\.a' is expected to not be reset-less$",
|
||||
sig=Signature({"a": In(1)}),
|
||||
obj=NS(a=Signal(1, reset_less=True)))
|
||||
self.assertTrue(
|
||||
Signature({"a": In(1)}).is_compliant(
|
||||
NS(signature=Signature({"a": In(1)}),
|
||||
a=Signal(1, reset_less=True))))
|
||||
self.assertNotCompliant(
|
||||
r"^'obj\.a' does not have an attribute 'b'$",
|
||||
sig=Signature({"a": Out(Signature({"b": In(1)}))}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue