build.{dsl,res}: allow removing attributes from subsignals.
authorwhitequark <whitequark@whitequark.org>
Mon, 8 Jul 2019 10:41:45 +0000 (10:41 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 8 Jul 2019 10:42:10 +0000 (10:42 +0000)
commit0b844da4cfc1e42f8048cc0441007a0139edfe23
tree1e09eae5537a5ec0c27b81d328852474df033685
parentf0c1c2cfeb5c64b90f0b602ff17c374c788b630f
build.{dsl,res}: allow removing attributes from subsignals.

This is useful when most attributes in a large composite resource
are the same, but a few signals are different, and also when building
abstractions around resources.

Fixes #128.
nmigen/build/dsl.py
nmigen/build/res.py
nmigen/test/test_build_dsl.py