6.1.1 Architecture Overview

Figure 6-2 depicts the interconnection between the master stage blocks and the slave stage blocks. The basic building blocks of the AHB bus matrix are the master stage block with an address decoder and the slave stage block with a slave arbiter. Each master interfaces with the master stage block and each slave interfaces with the slave stage block. The masters and slaves connect as shown in Figure 6-1.

An address decoder sub-block in each master stage generates the slave select signal to the corresponding slave. A slave arbiter sub-block in each slave stage generates the address-ready signal to the selected master.

Table 6-1. AHB Bus Matrix Connectivity
Masters
M3 
DCode BusM3
ICode BusM3 System BusSystem ControllerHPDMAFIC_0FIC_1MACPDMAUSB
MM1MM0MM2MM9MM3MM4MM5MM6MM7MM8
Priority1234444444
ArbitrationFixedFixedFixedFixedWRRWRRWRRWRRWRRWRR
SlaveseSRAM0MS0RWRWRWRWRWRWRWRWRWRW
eSRAM1MS1RWRWRWRWRWRWRWRWRWRW
eNVM_0MS2RW1R1RW1RW1R1RW1RW1RW1
eNVM_1MS3RW1R1RW1RW1R1RW1RW1RW1
FIC_0MS4RWRWRWRWRWRWRWRW
MACMS5RWRWRWRW
FIC_1RWRWRWRWRWRWRWRW
SYSREGRWRWRWRW
APB_0RWRWRWRWRW
APB_1RWRWRWRWRW
APB_2RWRWRWRW
USBRWRWRWRW
MSS DDR BridgeMS6RWRWRWRWRWRW
Note:
  1. Exercise caution while commanding the eNVM to program data. Other masters in the system may not be aware that the eNVM is unavailable if it is in a program cycle. Microchip recommends you use some form of software semaphore to control access.
  2. Low numbers in priority represent higher priority, with 1 being the highest priority.

Reads or writes to areas not allowed cause the AHB bus matrix to complete the transaction with an HRESP error indication. An error bit is set in the SW_ERRORSTATUS field of the MSS_EXTERNAL_SR register. The following types of errors can occur:

  • Write by an enabled master to a slave that is not RW
  • Write by an enabled master to addresses not corresponding to a slave
  • Write by the fabric master to the protected region
  • Write by a disabled master to any location
  • Read by an enabled master to any slave that is not R or RW
  • Read by an enabled master to addresses not corresponding to a slave
  • Read by the fabric master to the protected region
  • Read by a disabled master to any location
Figure 6-2. Master Stage and Slave Stage Interconnection

To reduce the load on the AHB bus matrix, some of the low-performance peripherals are connected through the synchronous AHB-to-AHB bridge with an address decoder. The AHB bus matrix is constructed of combinatorial logic, except for the AHB-to-AHB bridge, which inserts a one-cycle delay in each direction.

The following figure shows the block diagram of all the APB peripherals connected to AHB bus matrix using the AHB-to-AHB bridge. The MSS APB peripherals are connected through the AHB to APB bus.

Figure 6-3. Block Diagram of APB Destinations Connected to AHB Bus Matrix