# Zcu104 - error while synthesizing an ip

**URL:** https://discuss.pynq.io/t/zcu104-error-while-synthesizing-an-ip/2394
**Category:** Support
**Created:** [March 6, 2021, 8:22pm UTC](https://discuss.pynq.io/t/zcu104-error-while-synthesizing-an-ip/2394 "2021-03-06T20:22:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![praseetha](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@praseetha](https://discuss.pynq.io/u/praseetha)
#### Post date: [March 6, 2021, 8:22pm UTC](https://discuss.pynq.io/t/zcu104-error-while-synthesizing-an-ip/2394/1 "2021-03-06T20:22:45Z")

</div>

Hi,  
I am trying to create my own IP on vitis HLS, to configure with a PYNQ system on a ZCU104 board.  
When I use the #prage HLS UNROLL, I ma not able to sythesize my code and I am getting the following errors.  
while executing  
“source C:/Users/WS2-Praseetha/Pictures/loop\_pipeline2/loop\_pipeline/solution1/csynth.tcl”  
invoked from within  
This is my .h file  
#ifndef _LOOP\_PIPELINE\_H_  
#define _LOOP\_PIPELINE\_H_  
#include   
#include   
using namespace std;  
#include “hls\_stream.h”  
#include “ap\_int.h”  
#define DIM 7  
#define DIM01 100  
#define DIM02 100

#include   
#include   
using namespace std;

void loop\_pipeline(int N,int rowss[DIM01], int coll[DIM01], int vall[DIM01],int irad[100][100]);

#endif

This is the loops I want to unroll  
l\_1: for( y = 0; y \<100; y ++)

```
  {
    #pragma HLS UNROLL

```

l\_2:for( x = 0; x \<100; x++)

```
     {
       #pragma HLS UNROLL

```

---

<div class="post-metadata">

### Author: ![bartokon](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@bartokon](https://discuss.pynq.io/u/bartokon)
#### Post date: [March 7, 2021, 11:10am UTC](https://discuss.pynq.io/t/zcu104-error-while-synthesizing-an-ip/2394/2 "2021-03-07T11:10:38Z")

</div>

First try this:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/pynq1/original/2X/b/b312869a29ce52a3587f4f3f03d7dfae414d6276.png) [fun.cpp](https://discuss.pynq.io/uploads/short-url/gd3y5ZkzMdWkKVMqWWQUOqxl7AS.cpp) (457 Bytes) [fun.h](https://discuss.pynq.io/uploads/short-url/3mrcFWWRGt9ktkFIFBZ0CMzDHB8.h) (216 Bytes) [fun\_tb.cpp](https://discuss.pynq.io/uploads/short-url/uJsg8wVLFY8XdlqAhWGE6nXfIeD.cpp) (329 Bytes)

it’s working?  
Yes → You have something wrong in your code, and you posted too small sample for us to debug. Read red errors in console for more info.  
No → You could have no license/broken Vitis etc…

PS. fun2 is top function  
PS2. If you unroll L\_1, L\_2 is automatically unrolled

---

<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: [March 8, 2021, 11:41am UTC](https://discuss.pynq.io/t/zcu104-error-while-synthesizing-an-ip/2394/3 "2021-03-08T11:41:53Z")

</div>

This isn’t really a PYNQ question. You may be better posting this on the [Xilinx forums](https://forums.xilinx.com/).

Cathal
