esi-multichannel Timer

Similar documents
1 Contents 2 2 Overview 3 3 Hardware Interface 4 4 Software Interface Register Map Interrupts 6 5 Revision History 8

1 Contents. Version of EnSilica Ltd, All Rights Reserved

1 Contents. Version of EnSilica Ltd, All Rights Reserved

1 Contents. Version of EnSilica Ltd, All Rights Reserved

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

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

EECS 373 Design of Microprocessor-Based Systems

EECS 373 Design of Microprocessor-Based Systems

EECS 373 Midterm 2 Fall 2018

APB Free ware, 2015 Fen Logic Ltd.

EECS 373 Design of Microprocessor-Based Systems

EECS 373 Design of Microprocessor-Based Systems

1 Contents. Version of EnSilica Ltd, All Rights Reserved

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

EECS 373 Midterm Winter 2013

EECS 373 Lab 3: Introduction to Memory Mapped I/O

AvnetCore: Datasheet

EECS 373 Midterm Winter 2016

Peripheral Test Block

EECS 373 Fall 2018 Homework #3

EECS 373 Midterm Winter 2017

EECS 373 Midterm Winter 2012

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

EECS 373, Homework 4, Fall 2018 Assigned: Wednesday 10/3; Due: Wednesday 10/10 at 10pm

A VHDL 8254 Timer core

Architectural design proposal for real time clock for wireless microcontroller unit

CoreAHBtoAPB3 v3.1. Handbook

EECS 373 Practice Midterm & Homework #2 Fall 2011

CoreSPI v3.0. Handbook

SoC Interconnect Bus Structures

Core1588 v2.0. Handbook

CoreAPB3 v4.1. Handbook

CANmodule-III. Version Datasheet

EECS 373 Practice Midterm / Homework #3 Fall 2014

A User s Experience with SystemVerilog

CoreGPIO v3.1. Handbook

CoreSPI v5.0. Handbook

Universität Dortmund. ARM Cortex-M3 Buses

EECS 373 Midterm 2 Exam Winter 2018

Hardware Implementation of AMBA Processor Interface Using Verilog and FPGA

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

A VHDL UART core

CANmodule-IIIx. Version Datasheet

(ARM&Standard&Parallel&Bus) Introduction

CoreMDIO_APB v2.0. Handbook

Ref: AMBA Specification Rev. 2.0

EECS 373 Design of Microprocessor-Based Systems

CANmodule-IIx. Version 2.7.0

FPGA Implementation of A Pipelined MIPS Soft Core Processor

DESIGN AND VERIFICATION ANALYSIS OF APB3 PROTOCOL WITH COVERAGE

SpaceWire - Time Distribution Protocol VHDL IP Core User s Manual

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

Digital Systems Design

Project 1a: Hello World!

Core8051s v2.4 Handbook

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

VLSI DESIGN OF AMBA BASED AHB2APB BRIDGE

Designing the Future with Efficiency

SVA Advanced Topics: SVAUnit and Assertions for Formal

DMC-400 Dynamic Memory Controller. CoreLink. Technical Reference Manual. Revision: r0p0

APB Bridge Based on AMBA 4.0

Abstract BFMs Outshine Virtual Interfaces for Advanced SystemVerilog Testbenches

Laboratory Exercise 4

Verification of I2C module for Multiprotocol Serial Controller

AMBA Peripheral Bus Controller

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

AMBA Keyboard/Mouse PS/2 Interface

The 8255A: Programmable Peripheral Interface

AMBA Remap and Pause. Technical Reference Manual. Revision: r0p0. Copyright 1997 ARM Limited. All rights reserved. ARM DDI 0048AC

Using bind for Class-based Testbench Reuse with Mixed- Language Designs

Interprocess Communication

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

Chapter 2. Overview of Architecture and Microcontroller-Resources

DDR2 Dynamic Memory Controller (DMC-341) CoreLink. Technical Reference Manual. Revision: r1p1

Timer 32. Last updated 8/7/18

EECS 373 Design of Microprocessor-Based Systems

The I2C controller supports only Master function. It supports the 7-bits/10-bits addressing mode and support general call address. The maximum clock f

Date Performed: Marks Obtained: /10. Group Members (ID):. Experiment # 11. Introduction to Verilog II Sequential Circuits

DMA-330 DMA Controller. CoreLink. Technical Reference Manual. Revision: r1p2

VLSI Systems Design. Connection and Communication Models

Design and Analysis of Xilinx Verified AMBA Bridge for SoC Systems Shaila S Math 1, Veerabhadrayya Math 2 1

32-bit Embedded Core Peripheral. Advanced Interrupt Controller (AIC)

Digital Interface for SDIO)

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

AMBA DDR, LPDDR, and SDR Dynamic Memory Controller DMC-340

Core10100_AHBAPB v5.1. Handbook

Advanced Microcontroller Bus Architecture system

Transaction Level Modeling for Model Checking

This core is a slave core connect OPB device that must be controlled directly by a host processor.

1553 BC/BM/RT VHDL CORE DATA SHEET

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Sciences

DDR2 Dynamic Memory Controller (PL341) PrimeCell. Technical Reference Manual. Revision: r0p1

SoC. CoreSight. Technical Reference Manual. Revision: r1p0. Copyright ARM. All rights reserved. ARM DDI 0480B (ID042612)

Exp#8: Designing a Programmable Sequence Detector

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

ASIC Logic. Speaker: Juin-Nan Liu. Adopted from National Chiao-Tung University IP Core Design

9. PIO Core. Core Overview. Functional Description

EECS 373 Design of Microprocessor-Based Systems

C. Sisterna UNSJ Argentina. PACKAGE and SUBPROGRAMS

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

Transcription:

1 Contents 1 Contents 2 2 Overview 3 3 Hardware Interface 4 4 Software Interface 5 4.1 Register Map 5 4.2 Interrupts 6 Version 2.2 - Confidential 2 of 6 2010 EnSilica Ltd, All Rights Reserved

2 Overview The is a simple multichannel timer. It has the following features: Configurable number of channels. Configurable counter width. Single-shot or continuous mode. AMBA 3 APB slave interface. Clock APB IRQ 0 IRQ N Registers Timer 0 Timer N Figure 1: Version 2.2 - Confidential 3 of 6 2010 EnSilica Ltd, All Rights Reserved

3 Hardware Interface Module Name HDL Technology Source Files cpu_apb_multichannel_timer Verilog Generic cpu_apb_multichannel_timer.v Port Type Description bits Integer Specifies the number of bits in the counters channels Integer Specifies the number of timer channels Table 1: Parameters Port Direction Width Description clk Input 1 Clock used for counters. This must be active when clk_cactive is asserted. It must be synchronous to pclk, although can be at a lower frequency. pclk Input 1 APB clock. This must be active when pclk_cactive is asserted. presetn Input 1 APB reset, active-low paddr Input 8 APB address psel Input 1 APB slave select penable Input 1 APB enable pwrite Input 1 APB write pwdata Input 16 APB write data clk_cactive Output 1 Clock active (for clk) pclk_cactive Output 1 Clock active (for pclk) pready Output 1 APB ready prdata Output 16 APB read data pslverr Output 1 APB slave error interrupt_n Output channels Interrupt request, active-low Table 2: I/O Ports For complete details of the APB signals, please refer to the AMBA 3 APB Protocol v1.0 Specification available at http://www.arm.com/products/solutions/ambahomepage.html Version 2.2 - Confidential 4 of 6 2010 EnSilica Ltd, All Rights Reserved

4 Software Interface 4.1 Register Map Register Address Access Description offset counter[n] 0x10*N+0x00 R/W Counter register for channel N wrap_comparator[n] 0x10*N+0x04 R/W Wrap comparator for channel N status[n] 0x10*N+0x08 R/W Status register for channel N control[n] 0x10*N+0x0c R/W Control register for channel N Table 3: Register Map 4.1.1 Counter Each channel has its own up counter. The bit-width of the counter is specified by the bits parameter. When enabled, (control.e equals 0), the counter will increment by 1 on every positive edge of clk. When the counter contains the same value as in the corresponding wrap comparator register, the the counter will be reset to 0. The counter therefore counts in the range [0, wrap_comparator]. bits-1 0 Figure 2: Format of the counter register 4.1.2 Wrap Comparator Each timer channel has its own wrap comparator register. The wrap comparator register contains the value after which the corresponding counter will wrap to 0. bits-1 0 4.1.3 Figure 3: Format of the wrap_comparator register 4.1.4 Status Register Each timer channel has its own status register. Each status register contains a selection of flags that indicate the current status of the corresponding timer channel. To clear a bit in the status register, write a 1 to it. Writing 0 will leave it unchanged. Figure 4: Format of the status register 1 0 WO W Register Values Description W 0 - No wrap 1 Wrapped Wrapped flag. Indicates whether the counter has wrapped WO 0 - No wrap overflow 1 - Wrap overflow Wrapped overflow flag. Indicates if the W flag was set when the counter wrapped Table 4: Fields of the status register Version 2.2 - Confidential 5 of 6 2010 EnSilica Ltd, All Rights Reserved

4.1.5 Control Register Each timer channel has its own control register. Each control register contains a selection of flags that control the operation of the corresponding timer channel. Figure 5: Format of the control register 2 1 0 WIE SS E Register Values Description E 0 Disabled Enables the counter 1 Enabled SS 0 Continuous Single-shot mode 1 Single-shot WIE 0 Disabled 1 Enabled Wrap interrupt enable Table 5: Fields of the control register 4.2 Interrupts The timer supports a per-channel wrap interrupt. The wrap interrupt will be raised when the corresponding counter wraps to 0 and the WIE flag in the channel s control register is set to 1. The wrap interrupt can be acknowledged by writing a 1 to the corresponding status.w flag. Version 2.2 - Confidential 6 of 6 2010 EnSilica Ltd, All Rights Reserved