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. |
|
|
|
![]() |
Feb 15 2010, 01:56 PM
Post
#2
|
|
|
Advanced Member ![]() ![]() ![]() Group: Impulse Staff Posts: 237 Joined: 20-April 06 Member No.: 594 |
[posting for Rob until he gets access to the forums again]
Hi Diego, No reset mechanism is available for arrays, variables, and so on, other than initialization at the time when the bitstream is loaded. This is done by providing initialization in the C code when the array or variable is defined. If no initialization is provided, arrays and variables may be set to all 0s, dependent on the particular platform and implementation. Thanks, -Robert -------------------- Ed Trexel
Impulse Accelerated Technologies, Inc. |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 10th September 2010 - 11:20 AM |