build.{dsl,res}: allow removing attributes from subsignals.
authorwhitequark <cz@m-labs.hk>
Mon, 8 Jul 2019 10:41:45 +0000 (10:41 +0000)
committerwhitequark <cz@m-labs.hk>
Mon, 8 Jul 2019 10:42:10 +0000 (10:42 +0000)
commiteffba83118478751b0d09cb05cd9cd6318ee93ee
tree1e09eae5537a5ec0c27b81d328852474df033685
parent72e43b1c23a0a642567471d9a55e1707c6bcb113
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