# Empty bitstream files

**URL:** <https://discuss.pynq.io/t/empty-bitstream-files/1268>\
**Category:** Support\
**Created:** [May 13, 2020, 6:09pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268 "2020-05-13T18:09:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lalith](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lalith](https://discuss.pynq.io/u/Lalith)\
**Post date:** [May 13, 2020, 6:09pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/1 "2020-05-13T18:09:46Z")

</div>

Hello,

I am new to pynq and educating myself following tutorials on this web site. I tried tutorials creating overlays Adder and FIR\_filter. In each case when I open the overlay in python and list the content of I do not see any IP s.  
Like this:

# Load the overlay

overlay = Overlay(‘/home/xilinx/pynq/overlays/fir\_accel/fir\_accel.bit’)

# list content

overlay?  
Default documentation for overlay /home/xilinx/pynq/overlays/fir\_accel/fir\_accel.bit. The following  
attributes are available on this overlay:  
IP Blocks  
----------  
None

```
    Hierarchies
    -----------
    filter : pynq.overlay.DefaultHierarchy
    .
    .
    .

```

Everything looked fine in Vivado .There were no error messages when generating the bitstream ( (there were few warnings which looked harmless) and reported that the bit-stream was generated successfully. But after uploading .bit and .tcl files to PYNC board and looked at them in Jupyter notebook, always see the same null result.

Any help resolving this issue greatly appreciated. I tried multiple times using Vivado 18.3 and 19.2, and have spent several days struggling find what is going wrong.Thanks.

---

<div class="post-metadata">

**Author:** ![kuoyaoming93](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/kuoyaoming93/32/856_2.png) [@kuoyaoming93](https://discuss.pynq.io/u/kuoyaoming93)\
**Post date:** [May 13, 2020, 10:31pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/2 "2020-05-13T22:31:38Z")

</div>

Hello,

The file is inside the vivado project directory:  
Vivado\_Project\_name.srcs\sources\_1\bd\design\_1\hw\_handoff\design\_1.hwh

You should change the hwh file name. And it must be in the same directory and with same name.  
In this case: **fir\_accel.hwh**

---

<div class="post-metadata">

**Author:** ![Lalith](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lalith](https://discuss.pynq.io/u/Lalith)\
**Post date:** [May 13, 2020, 10:49pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/3 "2020-05-13T22:49:52Z")

</div>

Hi,

You meant copy **fir\_accel.hwh** to directory

/home/xilinx/pynq/overlays/fir\_accel ?

I just did that, but it did not fix it. Thanks.

Lalith

---

<div class="post-metadata">

**Author:** ![kuoyaoming93](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/kuoyaoming93/32/856_2.png) [@kuoyaoming93](https://discuss.pynq.io/u/kuoyaoming93)\
**Post date:** [May 13, 2020, 11:16pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/4 "2020-05-13T23:16:40Z")

</div>

Hi Lalith,

No, copy it to the same directory of fir\_accel.bit

For example: [sem-ip\_pynq/bits at master · kuoyaoming93/sem-ip\_pynq · GitHub](https://github.com/kuoyaoming93/sem-ip_pynq/tree/master/bits)

---

<div class="post-metadata">

**Author:** ![Lalith](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lalith](https://discuss.pynq.io/u/Lalith)\
**Post date:** [May 14, 2020, 5:36am UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/5 "2020-05-14T05:36:42Z")

</div>

Hi Yao-Ming,

Yes that directory is the one with fir\_accel.bit and fir\_accel.tcl.

Anyway now it is working, problem seems to be with my license. Somehow vivado had failed to connect to the license server and picked up some default license which did not generate bitstream correctly.

Still when I type overlays? it does not list any IPs, which I do not understand why.

But it is functional.

I also found that it works without the fir\_accel.hwh, perhaps for this particular example it is not needed.

Thank you for your help.

Lalith

---

<div class="post-metadata">

**Author:** ![kuoyaoming93](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/kuoyaoming93/32/856_2.png) [@kuoyaoming93](https://discuss.pynq.io/u/kuoyaoming93)\
**Post date:** [May 14, 2020, 3:36pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/6 "2020-05-14T15:36:29Z")

</div>

Hi Lalith,

I’m glad that you solved the problem!  
It’s so strange, I haven’t had that issue using Vivado.

Regards

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [May 14, 2020, 6:04pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/7 "2020-05-14T18:04:00Z")

</div>

Tcl file will be soon be deprecated. We use hwh file as the overlay file, so you have to put .bit and .hwh in the same folder when you import your overlay.

Also, if you can attach the block design it would be easier for us to see why you can’t see the hierarchy. There are some rules - for example, the PS block has to stay at the top level, not to be wrapped inside a hierarchical block. That way, the python parser is able to extract the correct information.

---

<div class="post-metadata">

**Author:** ![Lalith](https://avatars.discourse-cdn.com/v4/letter/l/97f17d/32.png) [@Lalith](https://discuss.pynq.io/u/Lalith)\
**Post date:** [May 15, 2020, 5:27am UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/8 "2020-05-15T05:27:06Z")

</div>

Hi,

Block tcl and a screen shot of the design are attached.

[fir\_accel.tcl](https://discuss.pynq.io/uploads/short-url/vJDb4NudKVteJj6EI8h3xA0wB47.tcl) (46.7 KB)

 ![Screenshot from 2020-05-15 00-21-25.png](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/1X/b8eb5a5c8cad102d39d0c89f829ba3ed67efdce4.png)

---

<div class="post-metadata">

**Author:** ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)\
**Post date:** [May 18, 2020, 3:56pm UTC](https://discuss.pynq.io/t/empty-bitstream-files/1268/9 "2020-05-18T15:56:25Z")

</div>

The tcl looks fine to me. So there might be a bug for the tcl parsing. Since we are deprecating tcl file soon, I will not try to resolve it at this moment. Please use the hwh file, put it along to the same location as your bit file. In that way after you instantiate overlay object, you should be able to see something using `overlay?`.
