hdl.ir: allow explicitly requesting flattening.
This commit is contained in:
parent
6f66885c09
commit
b534e92dd5
4 changed files with 24 additions and 5 deletions
|
|
@ -509,6 +509,15 @@ class FragmentHierarchyConflictTestCase(FHDLTestCase):
|
|||
"top.<unnamed #1>; hierarchy will be flattened"):
|
||||
self.f1._resolve_hierarchy_conflicts(mode="warn")
|
||||
|
||||
def test_explicit_flatten(self):
|
||||
self.f1 = Fragment()
|
||||
self.f2 = Fragment()
|
||||
self.f2.flatten = True
|
||||
self.f1.add_subfragment(self.f2)
|
||||
|
||||
self.f1._resolve_hierarchy_conflicts(mode="silent")
|
||||
self.assertEqual(self.f1.subfragments, [])
|
||||
|
||||
|
||||
class InstanceTestCase(FHDLTestCase):
|
||||
def setUp_cpu(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue