# Run two different overlay in a single logic

**URL:** <https://discuss.pynq.io/t/run-two-different-overlay-in-a-single-logic/4206>\
**Category:** Support\
**Created:** [May 18, 2022, 5:24am UTC](https://discuss.pynq.io/t/run-two-different-overlay-in-a-single-logic/4206 "2022-05-18T05:24:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![cathalmccabe](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/cathalmccabe/32/3348_2.png) [@cathalmccabe](https://discuss.pynq.io/u/cathalmccabe)\
**Post date:** [May 18, 2022, 7:43am UTC](https://discuss.pynq.io/t/run-two-different-overlay-in-a-single-logic/4206/3 "2022-05-18T07:43:58Z")

</div>

If you change overlay you change the whole design. If you need some functionality, you need to keep switching between Overlays.

i.e. call this each time before you need an overlay.  
ol\_x = Overlay(bitfile\_x)

There will be some time to program each overlay. You would be better creating a new combined overlay if you can.

Cathal

---

_[View the full topic](https://discuss.pynq.io/t/run-two-different-overlay-in-a-single-logic/4206)._
