Nios II Classic Processor Reference Guide

ID 683620
Date 10/28/2016
Public
Document Table of Contents

3.2.5. TLB Lookups

A TLB lookup attempts to convert a virtual address (VADDR) to a physical address (PADDR).

TLB Lookup Algorithm for Instruction Fetches


if (VPN match && (G == 1 || PID match)) 
   if (X == 1)
      PADDR = concat(PFN, VADDR[11:0])
   else take TLB permission violation exception
else
   if (EH bit of status register == 1)
      take double TLB miss exception
   else
      take fast TLB miss exception

TLB Lookup Algorithm for Data Access Operations


if (VPN match && (G == 1 || PID match))
   if ((load && R == 1) || (store && W == 1) || flushda)
      PADDR = concatenate(PFN, VADDR[11:0])
   else
      take TLB permission violation exception
else
   if (EH bit of status register == 1)
      take double TLB miss exception
   else
      take fast TLB miss exception

Refer to “Instruction-Related Exceptions” for information about TLB exceptions.