Altera_Forum
Honored Contributor
10 years agoHolding Value in Variable until next clock cycle
Hello all,
I am writing a process in which I want to hold some data in an array. I have declared and initialized the array inside process as variable. What I want is that array should be updated in one clock cycle, then retain its data until the next clock cycle and then get updated in the next cycle and so on.. My question is whenever the next clock cycle comes, does the array reset to its initial value given in the declaration part or it will start from the previous value that was stored in it in last cycle?? if it is reset to its initial value always, then how can I store the data in array that can be used in the next cl