Patent ID: 6871256

Claim:
A method for storing data in a data memory stack, comprising: arranging a data memory as a plurality of element memories having a plurality of data word locations and having an element memory width which is smaller than the sum of the element memory widths of all the element memories; arranging data to be stored into data groups, each data group having a plurality of data words; providing a memory pointer for pointing to a memory location in said data memory, said memory pointer providing a memory address comprising a group address component and an element address component corresponding to at least one of said element memories; and writing each data word to be stored in an element memory designated by said element address component at a location in said element memory designated by said group address component, wherein each data word to be stored is temporarily stored in a top of stack register working as a stack input register, and wherein after a data word written into the data memory the memory pointer is incremented by an amount that is a ratio of the width of the top of stack register to said sum of the element widths of the data memory.