IPB

Welcome Guest ( Log In | Register )

> How to initialize a Block RAM
Diego
post Feb 8 2010, 06:28 AM
Post #1


Member
**

Group: Members
Posts: 10
Joined: 1-December 09
Member No.: 2,555



Hi,

I have the following code to initialize an array to zero:
CODE

float my_array[MAX];

for (i = 0; i < MAX; i++){
my_array[i] = 0;
}


The vhdl inferred performs the loop as coded. However, I'd like to reset the array instantly, with a reset signal. Is there any way to do this?

Thanks in advance,

Kind Regards,
Diego.

Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 10th September 2010 - 11:35 AM