| |
|
||||
![]() |
![]() |
||||
|
8051 IP Core R8051XC2 High-Performance, Configurable, 8051-Compatible, 8-bit Microcontroller CoreOn this page: Description | Implementation Results | Features | Applications | Block Diagram | Functional Description | Performance | Support | Verification | Deliverables This 8051 IP core implements a range of fast, 8-bit, 8051-compatible microcontrollers that execute the MCS®51 instruction set. The R8051XC2 IP core runs with a single clock per machine cycle, and requires an average of 2.12 machine cycles per instruction. Dhrystone 2.1 tests show it to run from 9.4 to 12.1 times faster than the original 8051 at the same frequency. Representative 90 nm ASIC results have reached 430 MHz, for an effective speed-up of 400 times over 80C51 chips. The configurable core has a rich set of optional features and peripherals. Designers can choose from several versions, including the easy-to-configure full version with all options included; a custom, non-configurable version with options specified at purchase; and pre-packaged versions with different sets of options and degrees of configurability. All versions of this 8051 core benefit from power-saving architectural efficiency—the R8051XC2 is 10% better in milliwats/DMIP than our previous generation—and various power-management options are available. System development is facilitated through the EASE native on-chip debugging option and support by Keil’s C51 integrated development environment. This new product builds on CAST’s experience with hundreds of 8051 IP customers going back to 1997. Designed for easy reuse in ASICs, structured ASICs, or FPGAs, the core is strictly synchronous, with positive-edge clocking (except in the optional debug & SPI modules), synchronous reset, and no internal tri-states. Representative 90nm ASIC results show the core to be conservative in its use of space, requiring just 8,000 to 71,000 gates. See representative implementation results (in a new pop-up window): Features
Options and PeripheralsFull user-configurable version includes all of these; other versions include a subset (see Versions). External Memory Interface:
Direct Memory Access (DMA) Controller:
Multiplication-Division Unit:
Special Function Registers Interface:
Interrupt Controller:
Input/Output Interfaces
Timers and Counters
Power Management Unit with power-down modes (IDLE/STOP) Verification:
ApplicationsThe 8051 continues to be a rigorous and cost-effective solution for many
applications, and the fast, flexible R8051XC2 is an especially good choice
for many systems. Popular uses include data management control for complex
systems, and interface control for analog and sensing chips. Block Diagrams for Standard Versions
Functional DescriptionThe core is partitioned into modules as shown in the block diagram and described below. CPU: Central Processing UnitFetches instructions from program memory and uses RAM or SFRs as operands. Provides the ALU for 8-bit arithmetic, logic, multiplication and division operations, and Boolean manipulations. The RAM and SFR interface can address up to 256 bytes of Read/Write Data Memory Space and built-in and off-core Special Function Registers. The memory interface can address from 64KB to 8MB of Program Memory, and from 64KB up to 8MB of External Data Memory. It uses a HOLD interface to support any external DMA controller, and it eases the connection to memories using a de-multiplexed address/data bus. The variable-length code fetch and MOVC to access fast or slow program memory—and similarly a variable-length MOVX to access fast or slow RAM or peripherals—are provided. DMA: Direct Memory Access ControllerContains up to eight individual channels, each capable of transferring data from or to any addressable location (program memory, internal or external data memory, or SFR). Each channel can work in synchronous mode (when just one byte is transferred at each trigger) or asynchronous mode (when all the data is transferred at each trigger). Transfers can be triggered by software or by specified interrupt source. MDU: Multiplication Division UnitThis on-chip arithmetic unit performs these unsigned integer operations:
16 x 16 bit multiplication; 32/16 and 16/16 bit division; and 32 bit normalization
and L/R shifting Parallel PortsController serves up to four parallel 8-bit I/O ports to be used with off-core buffers. It is compatible with the classic 80C51, but lacks the multiplexed memory bus feature and alternate functions. (These could be combined off-core if required). Serial Ports 0 and 1Two fully independent serial ports for simultaneous communication over
two channels. They can operate in identical or different modes and at
different communication speeds. Serial Port 0 is capable of both synchronous
and asynchronous transmission, while Serial 1 provides asynchronous mode
only. I2C™ Interfaces: Primary and SecondaryThe primary (I2C) and secondary (SEC_I2C) I2C Bus Controllers each provide a serial interface that meets the Philips I2C bus specification v1.0 and support all master/slave receiver/transmitter modes. Each is a true multi-master bus controller, including collision detection and arbitration to prevent data corruption if two or more masters simultaneously initiate data transfer. They perform 8-bit oriented, bi-directional data transfers up to 100 Kbit/s in the standard mode, or up to 400 Kbit/s in the fast mode Serial Peripheral Interface (SPI) InterfaceProvides full-duplex, synchronous communication between the core and other peripheral devices, including other MCUs. It can operate either as Master or Slave, with programmable clock rate, phase, and polarity. The maximum data rate is ¼ of the system clock for a Slave, and ½ of the system clock for a Master. Write collision and overrun detection protect data, and Master mode fault detection for multi-master systems prevents bus conflict. Timers 0 and 1Each have these three modes: 13-bit timer/counter, 16-bit timer/counter, and 8-bit timer/counter with auto reload. Timer 0 has an additional mode: two 8-bit timers. Each timer can also count external pulses (1 to 0 transition) on the corresponding t0 or t1 pin. Another option is to gate the timer/counter using an external control signal, which allows it to measure the pulse width of external signals. Timer 2Operates as a timer, event counter, or gated timer. Compare-Capture UnitThe CCU within Timer2 performs Compare and Capture functions. For the
Compare function, values stored in four 16-bit compare/capture registers
are compared with the contents of the Timer 2 register. The results are
signaled on the “ccubus” outputs and interrupts are generated. Watchdog TimerA 15-bit counter that is incremented every 24 or 384 clock cycles. After
an external reset, it is disabled and all registers are set to zeros.
It can be started by applying an active input during reset (hardware automatic
start) or by setting the enable bit by software. Once started, it cannot
be stopped unless the external reset signal becomes active. Power Management, Reset Control, and Wake-Up Control UnitsGenerates clock enable signals for the main CPU and for peripherals;
serves Power Down Modes IDLE and STOP; and generates an internal synchronous
reset signal (upon external reset, watchdog timer overflow or software
reset condition). RTC: Real Time ClockProvides a real-time count with a resolution of 1/256th second and range of 179 years. It can set and read seconds, minutes, hours, day of the week, and the date, represented by a 16-bit number interpreted by software. An alarm function can generate interrupts periodically or at a specific time, and these may be used to wake up from IDLE/STOP mode. SFRMUX: Special Function Register MultiplexerProvides a common bus multiplexer for all the internal and external Special Function Registers. ISR: Interrupt Service Routine UnitThe R8051XC2 provides two types of interrupt controllers: an 8051-compatible with up to six interrupt sources and two priority levels, or an 80515-compatible with up to eighteen interrupt sources and four priority levels. Each source has its own request flag(s) located in a dedicated SFR. Each interrupt requested by the corresponding flag can be individually enabled or disabled by dedicated enable bits in the SFRs. OCDSInternal block and JTAG port interface for the optional EASE debugging system. It provides the following functions: Run, Stop, Single-step; Software breakpoint; Debugger program execution; Hardware breakpoints; Read/Write Access to Program Memory, External/Internal Data Memory and SFRs; and Program Trace and Data Trace (optional). PerformanceThe core’s architecture eliminates redundant bus states and implements parallel processing of fetch and execution phases. Since a cycle is aligned with memory fetch when possible, most of the 1-byte instructions are performed in a single cycle. The core uses one clock per cycle. This, together with other extensions (mutli-DPTR, MDU), leads to significant performance improvements with respect to the original Intel device operating with the same clock frequency. The Dhrystone 2.1 benchmark score varies from 0.088 to 0.114 DMIPS/MHz, which translates to speed improvements from 9.4 to 12.1 times over the standard 80C51, or 400 times the maximum performance at 430 MHz in 90nm technology.
SupportThe core as delivered is warranted against defects for ninety days from purchase. Thirty days of phone and email technical support are included, starting with the first interaction. Additional maintenance and support options are available; contact CAST Sales. VerificationThe core has been verified through extensive simulation and rigorous code coverage measurements. All subcomponents were functionally verified with an HDL testbench using their individual test suites. The CPU and ALU have been verified against a proprietary hardware modeler and behavioral models. The peripherals have also been verified in their own testbenches, based on either hardware or behavioral models. An extensive constrained random verification was performed to verify the CPU, DMA and OCDS. DeliverablesThe core is available in ASIC (synthesizable HDL) and FPGA (netlist) forms, and includes everything required for successful implementation:
A reference design board is available; contact CAST Sales for information.
On this page: Description | Implementation Results | Features | Applications | Block Diagram | Functional Description | Performance | Support | Verification | Deliverables Download PDF datasheets for more info: ASIC | Altera | Xilinx |
|||||||||||||||||||||||||||||||||||
|
top of page |
||||||||||||||||||||||||||||||||||||