Embedded Design Handbook

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

7.5.5. Building a Nios® II System with Tightly Coupled Memory

This section provides a detailed list of instructions to create a Nios® II system in Platform Designer that uses two tightly coupled memories, one for instruction access and one for data access. These two tightly coupled memories are connected to the Nios® II processor as shown in Figure 280. Additionally, instructions are provided to build a software project to exercise these tightly coupled memories. The output of the software shows that the tightly coupled memories have much faster access times than other on-chip memories.

To build a Nios® II system with tightly coupled memory, perform the following steps. These steps are described more fully in the following sections.

  1. Modify an existing reference design to include tightly coupled memories.
  2. Create the tightly coupled memories in Platform Designer.
  3. Connect the tightly coupled memories to the masters.
  4. Position the tightly coupled memories in the Nios® II processor’s address map.
  5. Specify the Nios® II exception address to access tightly coupled instruction memory.
  6. Add a performance counter.
  7. Generate the hardware system.
  8. Create a software project to exercise the tightly coupled memories.
  9. Execute the software on the new hardware design.
  10. Change the Tcl scripts and recompile the design to review how the timer settings work.