Forum Discussion
Altera_Forum
Honored Contributor
13 years agoStoring values as non-volatile in SRAM during RUNTIME
:confused: I am working on a meter based on Cyclone III (using all logic on Quartus and display related using NIOS). i now want to store/change some value during run-time and recollect on consequent...
Altera_Forum
Honored Contributor
13 years agoIf you might have to save multiple items something a little more complex is worth the effort.
I used a 24bit 'tag' and 8 bit 'length' in one 32bit word, followed by 'length' data words. Update sequence: 1) Find the end and write in the new length (leaving the tag 0xffffff) 2) Write in the new data. 3) Modify the new tag. 4) Change the old tag to zero. That will survive most interrupted write sequences.