AHB2APB Bridge. User Guide. 11/2013 Capital Microelectronics, Inc. China

Similar documents
AHB Slave Decoder. User Guide. 12/2014 Capital Microelectronics, Inc. China

CME AHB2APB Bridge Design Example

Floating Point. User Guide. 3/2014 Capital Microelectronics, Inc. China

External I2C. User Guide. 05/2014 Capital Microelectronics, Inc. China

UART. User Guide. 04/2014 Capital Microelectronics, Inc. China

Contents 1 Introduction FIR Filter IP Overview FIR Filter Theory Introduction FIR Filter IP Diagram Pin Description.

AMBA 3 AHB Lite Bus Architecture

Ref: AMBA Specification Rev. 2.0

SDR SDRAM Controller. User Guide. 10/2012 Capital Microelectronics, Inc. Beijing, China

CME FIFO with AHB interface. Design Example

SD 2.0 Host Controller IP

AHB-Lite Multilayer Interconnect IP. AHB-Lite Multilayer Interconnect IP User Guide Roa Logic, All rights reserved

UART Design Example. User Guide. 04/2014 Capital Microelectronics, Inc. China

CoreAHBtoAPB3 v3.1. Handbook

PCI Example. User Guide. 02/2014 Capital Microelectronics, Inc. China

APB4 GPIO. APB4 GPIO Datasheet Roa Logic, All rights reserved

5. On-chip Bus

VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE

Verilog AHB Testbench User's Guide

Lecture 10 Introduction to AMBA AHB

Part A. Yunfei Gu Washington University in St. Louis

EECS 373. Design of Microprocessor-Based Systems. Prabal Dutta University of Michigan. Announcements. Homework #2 Where was I last week?

Bus AMBA. Advanced Microcontroller Bus Architecture (AMBA)

EECS 373 Design of Microprocessor-Based Systems

CoreAHB. Contents. Product Summary. General Description. Intended Use. Key Features. Benefits. Supported Device Families

Universität Dortmund. ARM Cortex-M3 Buses

Hardware Implementation of AMBA Processor Interface Using Verilog and FPGA

CoreHPDMACtrl v2.1. Handbook

Developing a LEON3 template design for the Altera Cyclone-II DE2 board Master of Science Thesis in Integrated Electronic System Design

Assertion Based Verification of AMBA-AHB Using System Verilog

Design of an Efficient FSM for an Implementation of AMBA AHB in SD Host Controller

iimplementation of AMBA AHB protocol for high capacity memory management using VHDL

System Design Kit. Cortex-M. Technical Reference Manual. Revision: r0p0. Copyright 2011 ARM. All rights reserved. ARM DDI 0479B (ID070811)

SoC Interconnect Bus Structures

A Flexible SystemC Simulator for Multiprocessor Systemson-Chip

White Paper AHB to Avalon & Avalon to AHB Bridges

Embedded Busses. Large semiconductor. Core vendors. Interconnect IP vendors. STBUS (STMicroelectronics) Many others!

Cortex -M System Design Kit. Arm. Technical Reference Manual. Revision: r1p1

Bus Interfaces and Standards. Zeljko Zilic

Excalibur Solutions Using the Expansion Bus Interface. Introduction. EBI Characteristics

1 Contents. Version of EnSilica Ltd, All Rights Reserved

VeriFlow Technologies India (P) Ltd

Transaction Level Modeling with SystemC. Thorsten Grötker Engineering Manager Synopsys, Inc.

ISSN: [IDSTM-18] Impact Factor: 5.164

Design of AHB Arbiter with Effective Arbitration Logic for DMA Controller in AMBA Bus

Keywords- AMBA, AHB, APB, AHB Master, SOC, Split transaction.

PrimeCell AHB SRAM/NOR Memory Controller (PL241)

Serial Peripheral Interface Design for Advanced Microcontroller Bus Architecture Based System-on- Chip

EECS 373 Design of Microprocessor-Based Systems

(ARM&Standard&Parallel&Bus) Introduction

Digital Blocks Semiconductor IP

Pooja Kawale* et al ISSN: [IJESAT] [International Journal of Engineering Science & Advanced Technology] Volume-6, Issue-3,

Roa Logic. APB4 Multiplexer. Datasheet. October, c Roa Logic B.V.

EECS 373 Design of Microprocessor-Based Systems

CoreConfigMaster v2.1. Handbook

EECS 373 Design of Microprocessor-Based Systems

Design And Implementation of Efficient FSM For AHB Master And Arbiter

DEVELOPMENT AND VERIFICATION OF AHB2APB BRIDGE PROTOCOL USING UVM TECHNIQUE

Transaction Level Modeling with SystemC. Thorsten Grötker Engineering Manager Synopsys, Inc.

Design of Microprocessor-Based Systems Part II

AMBA Peripheral Bus Controller

Buses. Maurizio Palesi. Maurizio Palesi 1

Design of an AMBA AHB Reconfigurable Arbiter for On-chip Bus Architecture

Design of AMBA Based AHB2APB Bridge

DESIGN AND VERIFICATION ANALYSIS OF APB3 PROTOCOL WITH COVERAGE

SEMICON Solutions. Bus Structure. Created by: Duong Dang Date: 20 th Oct,2010

Improving Memory Access time by Building an AMBA AHB compliant Memory Controller

1. INTRODUCTION OF AMBA

International Journal of Applied Sciences, Engineering and Management ISSN , Vol. 05, No. 02, March 2016, pp

Designing with ALTERA SoC Hardware

SD Card Controller IP Specification

The SOCks Design Platform. Johannes Grad

BUILDING AN AMBA COMPLIANT MEMORY CONTROLLER

STM32 MICROCONTROLLER

Design and Verification of AMBA AHB- Lite protocol using Verilog HDL

EECS 373 Design of Microprocessor-Based Systems

ARM Cortex M3 & General Purpose Input/Output (GPIO)

Interprocess Communication

PrimeCell AHB SDR and SRAM/NOR Memory Controller (PL243)

Design & Implementation of AHB Interface for SOC Application

CoreAPB3 v4.1. Handbook

VLSI Systems Design. Connection and Communication Models

VERIFICATION ANALYSIS OF AHB-LITE PROTOCOL WITH COVERAGE

EECS 373 Practice Midterm & Homework #2 Fall 2011

System-On-Chip Design with the Leon CPU The SOCKS Hardware/Software Environment

August Issue Page 96 of 107 ISSN

1 Contents. Version of EnSilica Ltd, All Rights Reserved

AMBA AHB Bus Protocol Checker

A+3 A+2 A+1 A. The data bus 16-bit mode is shown in the figure below: msb. Figure bit wide data on 16-bit mode data bus

AN OPEN-SOURCE VHDL IP LIBRARY WITH PLUG&PLAY CONFIGURATION

CoreGPIO v3.1. Handbook

Lab-3: Simple Accelerator Design. National Chiao Tung University Chun-Jen Tsai 4/11/2011

Architectural design proposal for real time clock for wireless microcontroller unit

esi-multichannel Timer

ARM PrimeCell SDRAM Controller (PL170)

Design and Implementation of High-Performance Master/Slave Memory Controller with Microcontroller Bus Architecture

1 Contents. Version of EnSilica Ltd, All Rights Reserved

Multi-core microcontroller design with Cortex-M processors and CoreSight SoC

FSM & Handshaking Based AHB to APB Bridge for High Speed Systems

ISSN Vol.03, Issue.08, October-2015, Pages:

Transcription:

AHB2APB Bridge User Guide 11/2013 Capital Microelectronics, Inc. China

Contents Contents... 2 1 Introduction... 3 2 AHB2APB Bridge Overview... 4 2.1 Pin Description... 4 2.2 Parameter Description... 4 2.3 Block Diagram... 5 3 AHB2APB Bridge IP Usage... 6 3.1 AHB2APB Bridge operation timing diagram... 6 3.2 AHB2APB Bridge address mapping... 11 4 Resource usage and performance analysis... 12 5 Generate File Directory Structure... 13 Revision History... 15 http://www.capital-micro.com 2

1 Introduction This document mainly describes the usage of the AHB2APB Bridge IP. It works as AHB bus slave and APB bus master. So, if there is no APB bus provided, the APB slave blocks can be connected to AHB masters through the AHB2APB Bridge. The AHB2APB Bridge IP supports the following features: Compliance with the AMBA Specification, Revision 2.0 from ARM Single and burst AHB transfer Up to 16 APB slaves, the slave number can be configured 32-bit AHB data buses 32-bit APB data buses Little-endian AHB systems Big-endian and little-endian APB systems APB slave address space can be configured - All slaves must have their address spaces aligned to a 1 K boundary. - Minimum address space allocated to a configured slave is 1 K. Synchronous /; is an integer multiple of Device family support: CME-M7A http://www.capital-micro.com 3

2 AHB2APB Bridge Overview 2.1 Pin Description Table 2-1 AHB2APB Bridge interface Interface Name Direction Width Description System AHB interface APB interface Input 1 AHB interface clock hresetn Input 1 AHB interface reset, low active Input 1 AHB address bus Input 1 AHB transfer direction: 1-write, 0-read hwdata Input 32 AHB write data bus hrdata Output 32 AHB read data bus Input 1 AHB slave select signal Output 1 Transfer done output hresp Output 1 Transfer response signal Input 2 AHB Transfer type signal hsize Input 3 AHB Transfer size hburst Input 3 AHB Transfer type signal _en Input 1 APB bus clock enable Output 32 APB address bus pwdata Output 32 APB write data bus Output 1 APB transfer direction: 1-write, 0-read Output 1 Data valid strobe _s0 Output 1 Peripheral select signal of APB ~ slave _s15 Prdata_s0 Input 32 APB read data bus ~ prdata_s15 2.2 Parameter Description Table 2-2 AHB2APB Bridge parameter description Name Type Value Description http://www.capital-micro.com 4

BIG_ENDIAN Integer 1/0 Big or little endian for APB system NUM_APB_SLAVES Integer 1~16 Number of APB slave 32 ha000_0000~ START_PADDR_SN Integer 32 hbfff_fc00 Start address of APB slave N, 1K or boundary in FP0/FP1 address space 32 hc000_0000~ 32 hdfff_fc00 END_PADDR_SN Integer 32 ha000_03ff~ 32 hbfff_ffff End address of APB slave N, 1K or boundary in FP0/FP1 address space 32 hc000_03ff~ 32 hdfff_ffff 2.3 Block Diagram AHB2APB Bridge AHB Bus signals AHB Slave Interface Address Decoder Read Data Mux APB Bus signals Figure 2-1 AHB2APB Bridge IP block diagram AHB Slave Interface module transforms AHB bus signals into APB bus control signals and the Address Decoder will decodes the address input and generates the select signals to select data form Read Data MUX module. http://www.capital-micro.com 5

3 AHB2APB Bridge IP Usage 3.1 AHB2APB Bridge operation timing diagram 1 2 3 4 5 6 7 8 9 10 pck_en 2 hrdata prdata Figure 3-1 Basic read transfer((=) In the figure 3-1, it is described how to transform the AHB bus signals to APB bus signals in the basic read transfer.the single transfer consists of one address cycle and one data cycle on the AHB bus side. If the is equal to, the transfer starts on the AHB first rising edge and the address is sampled by the APB Bridge on the next rising edge. Then the address and signal are broadcasted and the signal is generated and the signal is generated on the next rising edge. During the penbale valid, the prdata must be provided and routed directly back to the AHB. http://www.capital-micro.com 6

1 2 3 4 5 6 7 8 9 10 11 12 13 14 _en 2 hrdata prdata Figure 3-2 Basic read transfer (!=) If the is not equal to, all the signals on the APB bus side change on the rising edge. 1 2 3 4 5 6 7 8 9 10 11 12 _en 2 hwdata pwdata Figure 3-3 Basic Write transfer (=) http://www.capital-micro.com 7

In the figure 3-3, it is described how to transform the AHB bus signals to APB bus signals in the basic write transfer.the single transfer consists of one address cycle and one data cycle on the AHB bus side. If the is equal to, the transfer starts on the AHB on first rising edge and the address is sampled by the APB Bridge at the next rising edge. The hwdata is provided on the following rising edge. Then the address and signal are broadcasted and the signal and the signal are generated on the next rising edge. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 _en 2 hwdata pwdata Figure 3-4 Basic Write transfer (!=) If the is not equal to, all the signals on the APB bus side change on the rising edge. http://www.capital-micro.com 8

1 2 3 4 5 6 7 8 9 10 11 _en addr2 addr3 addr4 2 3 3 3 hrdata data2 data3 data4 addr2 addr3 addr4 prdata data2 data3 data4 Figure 3-5 Read Burst transfer( = ) Figure 3-5 shows how to transform the AHB bus signals to APB bus signals in the read burst transfer. There are some differences with the single read. All read transfers require a wait state when the former read operation is not finished and the signal will be low in order to make sure that there is no new address broadcasted. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 _en addr2 addr3 2 3 hrdata data2 data3 addr2 addr3 prdata data2 data3 Figure 3-6 Read Burst transfer(! = ) http://www.capital-micro.com 9

If the is not equal to, all the signals on the APB bus side change on the rising edge. 1 2 3 4 5 6 7 8 9 10 11 _en addr2 addr3 addr4 2 3 3 3 hwdata data2 data3 data4 addr2 addr3 addr4 pwdata data2 data3 data4 Figure 3-7 Write Burst transfer(=) In the write burst transfer, the first transfer can complete with zero wait states, but the coming write operation all need a wait state. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 _en a1 a2 a3 2 3 hwdata d1 d2 d3 a1 a2 a3 pwdata d1 d2 d3 Figure 3-8 Write Burst transfer(!=) http://www.capital-micro.com 10

If the is not equal to, all the signals on the APB bus side change on the rising edge. 3.2 AHB2APB Bridge address mapping dfff_ffff FP1 c000_0000 bfff_ffff FP0 a000_0000 Figure 3-9 Address mapping The ARM Core provides two groups of AHB Bus signals,ahb0 and AHB1, so there are two memory space for user logic which are called as FP0 and FP1.It means that if you instantiate an ARM Core and choose the AHB0, you must access your slaves on the address from a000_0000 to bfff_ffff, but if you connect the AHB2APB Bridge to AHB1, the slaves can be accessed on the address from c000_0000 to dfff_ffff. The slave number and each slave s address space can be configured by user. The address space must be aligned to a 1K boundary, for example, slave0 s address space is from a000_0000 to a000_03ff. http://www.capital-micro.com 11

4 Resource usage and performance analysis Resource usage and performance of the AHB2APB Bridge IP on Primace 6.0 Table 4-1 AHB2APB Bridge IP resource usage and performance Resource LUTs Regs Performance With 1 slave 424 207 100 MHz With 2 slaves 455 207 100 MHz With 4 slaves 521 207 100 MHz With 8 slaves 577 207 100 MHz With 12 slaves 763 207 100 MHz With 16 slaves 869 207 100 MHz http://www.capital-micro.com 12

5 Generate File Directory Structure The AHB2APB Bridge IP Wizard generated file includes: source files (src), simulation files(sim) and example design files and related document. The detailed design directory structure is as below. Project src outputs ip_core ip_top.v (define by user) ahb2apb_bridge_v1 src sim doc example ahb2apb_bridge.v ahb2apb_bridge_tb.v ahb2apb_bridge_tb_ modelsim.f ahb2apb_bridge_tb. do apb_slave.v slave_mem_256x32.v m7a_sim.v CME_AHB2APB_ Bridge_user_guide _EN01.pdf = directory = source RTL code cme_ip_ahb2apb_ bridge_v1_2slaves CME_AHB2APB_ Bridge_example_user _guide_en01.pdf = simulation related files = documentation src_vp *.vp (Protected RTL) Figure 5-1 IP wizard generated file directory structure Table 5-1 Generated File Directory structure Directory src\ ip_core\ \ahb2apb_bridge_v1 \doc\cme_ahb2apb_bridge_user_guide_en01.doc Description Directory for project source code, including IP wizard generate code. The directory specially for all IPs Directory for ahb2apb bridge IP User guide for ahb2apb bridge IP \src IP Design RTL http://www.capital-micro.com 13

\src\ahb2apb_bridge.v The src of ahb2apb bridge IP (Encrypted) \sim \ahb2apb_bridge_tb.v Testbench of ahb2apb bridge IP \ahb2apb_bridge_tb_modelsim.f Modelsim simulation related files \ ahb2apb_bridge_tb.do Do script for Modelsim simulation \apb_slave.v Other RTL design files for simulation \ slave_mem_256x32.v \ m7a_sim.v \src_vp Protected design RTL for Modelsim simulation \*.vp Encrypted ahb2apb bridge IP related design RTL \example ahb2apb_bridge_2slaves.zip Ahb2apb_bridge IP example with 2 salves CME_AHB2APB_Brdige_example_user_guide The guide of ahb2apb bridge with 2 _EN01.pdf slaves. http://www.capital-micro.com 14

Revision History Revision Date Comments 1.0 2013-11-20 Initial release http://www.capital-micro.com 15