Register Array

You can create, edit, and delete register arrays by selecting "Register Array" from the popup menu at the top of the Edit Modules dialog box. A register array is an indexed list of any number of registers. If the array has name "A" and if the array contains 4 registers, then those registers are denoted by "A[0]", "A[1]", "A[2]", and "A[3]". You cannot edit the contents of the registers in an array, other than their default initial values, using this dialog box.

Each register in the array can also be given a new name different from the default name (such as "A[0]"), an initial default value, and can be designated as read only. However, all registers must have the same width. To set these properties, click the "Properties..." button in the Edit Modules dialog box.

Parameters:

Width: a positive base-10 integer that specifies the number of bits in each register in the array. All registers in an array must have the same width. Registers can have a width of at most 64.

Length: a positive base-10 integer specifying the number of registers in the register array.