AN 978: Nios® V Processor Migration Guidelines

ID 773196
Date 5/15/2024
Public
Document Table of Contents

5.7. Tightly Coupled Memory

Nios® II/f and Nios® V/g processors support tightly coupled memory (TCM).
Table 30.  TCM Characteristics
TCM Nios® V/g Processor Nios® II/f Processor
Number of Instruction TCM (ITCM) Two Four
Number of Data TCM (DTCM) Two Four
Memory Type Dual-port (Internal port to processor and external subordinate port).

Depends on the connected on-chip memory:

  • Single-port
  • Dual-port
TCMs Size 0 Bytes (Disabled), up to 512 MBytes Depends on the connected on-chip memory.
TCMs Location Internal within Nios® V processor core (internal RAM). External to Nios® II processor core (system RAM).
TCMs Instantiation Instantiated within the processor upon enable.
  • Expose TCM memory interface master port upon enable.
  • A connection must be made to any on-chip memory.
Memory Initialization Supports HEX or MIF file. Supports HEX or MIF file.
Table 31.  TCM Use Cases
TCM Nios® V/g Processor Nios® II/f Processor
Memory Region
  • Dual-port ITCM:
    • Instruction memory region (Internal connection to processor instruction bus)
    • Data memory region (Connects ITCM subordinate port to Nios V processor data_manager port)
  • Single-port DTCM: Data memory region (Internal connection to processor data bus).

  • Single-port ITCM: Instruction memory region (Connects to ITCM master port)
  • Dual-port ITCM:
    • Instruction memory region (Connects 1st slave port to ITCM master port)
    • Data memory region (Connects 2nd slave port to Nios II processor data_master port)
  • Single-port DTCM: Data memory region (Connects to DTCM master port)
Nios® V Processor Application Execute-In-Place from ITCM Initialize dual-port ITCM and single-port DTCM (or system RAM) with Application HEX file.
  • Initialize single-port ITCM and DTCM (or system RAM) with Application HEX file.
  • Initialize dual-port ITCM with Application HEX file.
alt_load() with ITCM Supported with dual-port ITCM and single-port DTCM.
  • Not supported with single-port ITCM.
  • Supported with dual-port ITCM.
Download Nios® V Processor Application into ITCM Supported with dual-port ITCM and single-port DTCM.
  • Not supported with single-port ITCM.
  • Supported with dual-port ITCM.
External Host Interface
  • Accessible by external host or processor core (for dual-port TCMs).
  • The interface is AXI4-Lite Subordinate Port.
  • Accessible by external host or processor core (for dual-port TCMs).
  • The interface is Avalon® Memory-Mapped Slave Port.
Figure 45. Tightly-Coupled Memory in Nios® V/g Processor
Figure 46. Tightly-Coupled Memory with Nios® II/f Processor