# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpk1](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/dpk1/32/3355_2.png) [@dpk1](https://discuss.pynq.io/u/dpk1)\
**Post date:** [May 18, 2022, 5:24am UTC](https://discuss.pynq.io/t/run-two-different-overlay-in-a-single-logic/4206/1 "2022-05-18T05:24:03Z")

</div>

Hii, I am trying to use both base overlay and my designed overlay in the same project. But I feel both overlay calling is providing me error. Is there any way to use both overlay?  
Thanks

---

<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:41am UTC](https://discuss.pynq.io/t/run-two-different-overlay-in-a-single-logic/4206/2 "2022-05-18T07:41:56Z")

</div>

2 posts were split to a new topic: [Does PYNQ support floorplan masking (moved)](https://discuss.pynq.io/t/does-pynq-support-floorplan-masking-moved/4207)

---

<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
