| |||
| Home > Programmers Model > Register descriptions > Memory Configuration 2 Register | |||
The memory_cfg2 Register characteristics are:
Controls the operation of the DDR2 DMC. Enables you to override the configuration set by the tie-off signals, see Tie-offs.
Only accessible in Config or Low_power state.
Some bits are only available when a controller is configured to provide a legacy pad interface.
Available in all configurations of the DDR2 DMC.
See the register summary in Table 3.1.
Figure 3.27 shows the memory_cfg2 Register bit assignments.
Table 3.21 shows the memory_cfg2 Register bit assignments.
Table 3.21. memory_cfg2 Register bit assignments
| Bits | Name | Function |
|---|---|---|
| [31:8] | - | Read undefined, write as zero. |
[7:6] | memory_width2 | Controls if the DDR2 DMC uses the entire configured memory data bus width or half of the data bus. Depending on the configured MEMWIDTH value, the following bit settings are possible:
You can determine the configured data bus width, MEMWIDTH, by accessing the memory_width field in the memc_status Register, see Memory Controller Status Register. The default value is set by the state of memory_width[1:0], when aresetn goes HIGH. |
[5:4] | bank_bits | Controls how many bits of the AXI address are allocated for addressing the banks in a memory device. The options are:
You can determine the configured number of supported memory banks by accessing the memory_banks field in the memc_status Register, see Memory Controller Status Register. The default value is set by the state of bank_bits[1:0], when aresetn goes HIGH. |
[3] | cke_init | If the DDR2 DMC contains a DFI pad interface then this bit is reserved. Otherwise, for a controller with a legacy pad interface, it sets the state of cke when mresetn is deasserted. The default value is set by the state of cke_init, when aresetn goes HIGH. |
[2] | dqm_init | If the DDR2 DMC contains a DFI pad interface then this bit is reserved. Otherwise, for a controller with a legacy pad interface, it sets the state of the dqm[MEMORY_BYTES-1:0] outputs when mresetn is deasserted. The default value is set by the state of dqm_init, when aresetn goes HIGH. |
[1:0] | clock_cfg | Encodes the clocking scheme:
The default value of bit [0] is set by the state of sync, when aresetn goes HIGH. |