UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor panfei
Visitor
799 Views
Registered: ‎02-01-2013

Dual port ram for a class member

Hi! I am trying to let a array (it is a member of a class) as a dual port ram using the following pragma:

 

#pragma HLS RESOURCE variable = partition_table core = RAM_2P

 

I put it in the constructor, but the tool gives me an error:

 

Array "partition_table" is allocated with multiple cores: RAM_2P, RAM

 

how can I solve this problem?

0 Kudos
2 Replies
Xilinx Employee
Xilinx Employee
772 Views
Registered: ‎03-24-2010

Re: Dual port ram for a class member

How about adding it right after its declaration?

Regards,
brucey
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Visitor panfei
Visitor
760 Views
Registered: ‎02-01-2013

Re: Dual port ram for a class member

I've tried it and the tool says that the #pragma is at the wrong place (it must be in a function).
0 Kudos