Embedded Design Handbook

ID 683689
Date 8/28/2023
Public
Document Table of Contents

7.5.5.3. Create the Tightly Coupled Memories

In this section you create two types of tightly coupled memories: a tightly coupled instruction memory and a tightly coupled data memory.

  1. In the Component Library tab, double-click On-Chip Memory in the On-Chip subfolder of the Memories and Memory Controllers folder. The On-Chip Memory configuration wizard appears.
  2. To complete the configuration of this memory, specify the settings listed in the table below.
  3. In the Size and Memory initialization boxes, specify the settings listed in the table below.
    Table 57.  On-Chip Memory Default Settings
    Properties Configuration Settings
    Memory type RAM Turn this option on
    Dual-Port Access Turn this option on
    Read During Write Mode This option is DONT_CARE
    Block type Auto
    Size Memory Width 32
    Total memory size 4 Kb
    Read latency Slave s1 1
    Slave s2 1
    Memory initialization Initialize memory content Turn this option on
    Enable non-default initialization file Leave this option off
    Enable In-System Memory Content Editor feature Leave this option off
  4. Click Finish to close the configuration wizard.
  5. Click the System Contents tab and scroll down to the onchip_memory2_0 component.
    Note: You must name the components exactly as they appear in this tutorial. If your component names differ from the names printed here, the software example will not work.
  6. Right-click onchip_memory2_0 and rename the component to tightly_coupled_instruction_memory.
  7. To configure a second on-chip memory, in the list of available memory components, double-click On-Chip Memory (RAM or ROM). The On-Chip Memory configuration wizard appears.
  8. Configure the settings that are listed in the table below. Unlike the tightly coupled instruction memory, this memory is single-port. Total memory size for tightly coupled data memory is twice the size of tightly coupled instruction memory at 8 KB.
    Table 58.  On-Chip Memory Default Settings
    Properties Configuration Settings
    Memory type RAM Turn this option on
    Dual-Port Access Turn this option off
    Read During Write Mode This option is DONT_CARE
    Block type Auto
    Size Memory Width 32
    Total memory size 8 Kb
    Read latency Slave s1 1
    Memory initialization Initialize memory content Turn this option off
    Enable non-default initialization file Leave this option off
    Enable In-System Memory Content Editor feature Leave this option off
  9. Click Finish to close the On-Chip Memory configuration wizard.
  10. Rename the onchip_memory2_0 component to tightly_coupled_data_memory.