From WikiChip
Editing acorn/microarchitectures/arm2

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{acorn title|ARM2|arch}}
+
{{armh title|ARM2|arch}}
 
{{microarchitecture
 
{{microarchitecture
 
|atype=CPU
 
|atype=CPU
 
|name=ARM2
 
|name=ARM2
|designer=Acorn Computers
+
|designer=ARM Holdings
 
|manufacturer=VLSI Technology
 
|manufacturer=VLSI Technology
 
|manufacturer 2=Sanyo
 
|manufacturer 2=Sanyo
Line 19: Line 19:
 
|l1d per=Core
 
|l1d per=Core
 
|predecessor=ARM1
 
|predecessor=ARM1
|predecessor link=acorn/microarchitectures/arm1
+
|predecessor link=arm holdings/microarchitectures/arm1
 
|successor=ARM3
 
|successor=ARM3
|successor link=acorn/microarchitectures/arm3
+
|successor link=arm holdings/microarchitectures/arm3
 +
|inst=Yes
 +
|cache=Yes
 +
|succession=Yes
 
}}
 
}}
'''ARM2''' is the second [[ARM]] implementation designed by [[Acorn Computers]] as a successor to the {{\\|ARM1}}. Introduced in 1986, the ARM2 brings a number of major improvements over its predecessor.
+
'''ARM2''' is the second [[ARM]] implementation designed by [[ARM Holdings]] (then [[Acorn Computers]]) as a successor to the {{\\|ARM1}}. Introduced in 1986, the ARM2 brings a number of major improvements over its predecessor.
  
 
== Overview ==
 
== Overview ==
 
{{see also|arm/history|l1=ARM's History}}
 
{{see also|arm/history|l1=ARM's History}}
Introduced in [[1986]], the ARM2 is a reimplementation of the {{\\|ARM1}} on a smaller process along with the addition of a number of additional enhancements. The ARM2 was capable of exceeding 10 MIPS when not bottlenecked by memory with an average of around 6 MIPS. Unlike the ARM1 which was predominantly a research project, the ARM2 became the first commercially successful ARM microprocessor.
+
Introduced in 1986, the ARM2 is a reimplementation of the {{\\|ARM1}} on a smaller process along with the addition of a number of additional enhancements. The ARM2 was capable of exceeding 10 MIPS when not bottlenecked by memory.
 
 
The ARM2 was designed to work as an embedded controller or a coprocessor or as a stand-alone microprocessor system. The [[Acorn Archimedes]] family of personal computers was built using the ARM2 along with a number of fully custom support chips that were also designed by Acorn Computer.
 
  
 
== Process Technology ==
 
== Process Technology ==
Line 42: Line 43:
 
* 27-entry register file (from 25)
 
* 27-entry register file (from 25)
 
** 2 new program status registers
 
** 2 new program status registers
** Aid Fast Interrupts
 
* New support for coprocessors
 
* New support for hardware multiply and accumulate
 
 
==== New instructions ====
 
{{see also|arm/armv2|l1=ARMv2}}
 
ARM2 introduces a number of new instructions to deal with the new features:
 
 
'''Coprocessor:'''
 
 
* <code>CDP</code> - Coprocessor data process
 
* <code>LDC</code> - Load to coprocessor
 
* <code>STC</code> - Store from coprocessor
 
* <code>MCR</code> - Move to coprocessor
 
* <code>MRC</code> - Move from coprocessor
 
 
'''Arithmetics:'''
 
* <code>MUL</code> - Multiplication
 
* <code>MLA</code> - Multiplication and accumulate
 
  
 
=== Block Diagram ===
 
=== Block Diagram ===
==== Core ====
+
{{empty section}}
[[File:arm2 block diagram.svg|750px]]
 
  
 
== Core ==
 
== Core ==
The ARM2 largely builds on the successful {{\\|ARM1}} design, featuring an extremely simple 32-bit single-chip [[RISC]] microprocessor implementation with a number of [[CISC]] features. The largest change to the pipeline is the augmentation of a new [[Booth's multiplier]] that was needed to support the new hardware multiplication instructions.
 
 
 
=== Pipeline ===
 
=== Pipeline ===
The ARM2 utilizes a [[pipelining]] technique in order to improve performance and efficiency. At peak performance the ARM2 can reach 10 [[million instructions per second]] with an average of 6 MIPS when using a 150 ns row access [[DRAM]]. The ARM2's pipeline consists of 3 stages. Previously some instructions may have taken as much as five cycles. With the introduction of hardware multiplication this can now be as high as 16 cycles.
 
 
 
: [[File:arm1 pipeline.svg|800px]]
 
 
[[File:two-phase clock.svg|right|300px]]
 
The ARM2 operates on a guaranteed non-overlapping [[two-phase clock]] which allowed for [[level-triggered]] transfer instead of [[edge-triggering]]. The two clock phases are not generated on-die but come from an external [[oscillator]]. A complete cycle on the ARM2 is therefore Φ1 + Φ2. To simplify system design, these clocks may be stretched to work in-sync with memory access times.
 
 
==== Fetch ====
 
[[File:arm2 pc.svg|right|200px]]
 
The Instruction Pipe is a functional block that holds awaiting instructions until execution, it therefore holds a number of instruction sufficient to ensure instructions are always executing at all cycles on all stages.
 
 
The [[program counter]] on the ARM2 always points to the instruction being fetched.  That is, with every instruction being exactly 4 [[bytes]], the currently executing instruction is always <code>PC - 8</code>. During the fetch stage, the address specified by the address register gets sent through the address pins and is fetched from memory.
 
 
In conjunction with the address register is a dedicated [[incrementer]] which calculates the next address. The actual address for the next instruction will usually come from that incrementer. However, occasionally, the next instruction may also come from the [[ALU]] instead. On very rare occasions, the next instruction value can be forced to an exception. When the instruction is coming from the incrementer, the ARM2 will assert this fact on the <code>SEQ</code> pin, allowing the external memory controller to know that the next instruction will in fact be +4 the current instruction, allowing it to determine if an address translation is necessary and prepare ahead. This is done to improve performance because it can make use of [[Page-Mode DRAM]], allowing for more efficient consecutive memory reads.
 
 
==== Decode ====
 
On the second cycle of each instruction, the decode occurs. At this stage the instruction is decoded and the appropriate control signals are generated. The ARM2 implements the decoding in a number of separate units:
 
 
* Instruction Decode, performs the top-level decoding
 
* Register Decode, decodes the register selection field
 
* ALU Decode, decodes the ALU operation
 
* Shift Decode, decodes the [[barrel shifter]] controls
 
 
The Register Decode handles the register selection for both read ports and the write port.
 
 
The reason the decode is implemented in a number of separate units is because the ARM2 makes use of [[microcode]] [[ROM]]s ([[PLA]]). Each instruction is decoded into up to four [[µOP]] signal-wise. In other words, the [[ARM]] instructions are broken down into up to four sets of internal-µOP signals indicating things such as which registers to select or what value to shift by. For some complex operations such as [[block-transfer instructions|block-transfers]], the [[microsequencer]] also performs a looping operation for each register.
 
 
==== Execute ====
 
[[File:arm1 register file.svg|right|250px]]
 
The ARM2 has a [[physical register file]] of 27 {{arch|32}} registers (same as the [[architectural register file]]). This was increased from 25 in the {{\\|ARM1}} for the purpose of processor status. As with the {{\\|ARM1}}, Register 15 ({{arm|R15}}) is still the [[Program Counter]]. 16 of the registers are visible to the user with the reminder only being accessible while in supervisor mode. The register file has two read ports for the operands heading to the ALU and a single write port for the ALU write-back value. Additionally there is a dedicated {{arm|R15}} read and write port.
 
 
Each cycle two values are operated on. During clock phase 1 (''Φ1'') the values are fetched from the appropriate sources into the ALU for execution and during clock phase 2 (''Φ2''), the 32-bit ALU output is stored onto the Register File write port.
 
 
For a typical [[register-register]] operation, the first operand is fetched from the register file on Port 0 directly to the ALU while the second operand is fetched from the register file on Port 1 and through the barrel shifter to the ALU. For a [[register-immediate]] operation, the first operand is fetched from the register file on Port 0 directly to the ALU while the second operand is fetched from the instruction.
 
 
<div style="display: inline-block; padding-left: 10px; float: left;">
 
<div style="float: left; margin: 10px;">'''Register-Register:'''<br>[[File:arm1 reg reg.svg|300px]]</div>
 
<div style="float: left; margin: 10px;">'''Register-Immediate:'''<br>[[File:arm1 reg imm.svg|300px]]</div></div>
 
 
{{clear}}
 
===== Multiplication =====
 
[[File:arm2 mul cycle.svg|right|250px]]
 
The ARM1 major performance issue was with multiplication. The ARM1 lacked hardware multiplication which meant software had to resort to a software-based solution (e.g., classic [[Shift-and-Add Multiplication]]). For example to perform <code>var = x * 5;</code> one could rewrite it as <code>var = x + (x << 2);</code> to achieve the same result without a multiplication operation. While originally was not thought to be a big problem, software multiplication proved to be a rather serious bottleneck.
 
 
This was addressed with the ARM2 which introduced a [[Booth's Multiplier]]. Conceptually, the multiplier sits on the "B" operand of the ALU in a similar way to how the barrel shifter sits on the "A" operand of the ALU, however there are some major differences in how they are implemented and operate.
 
 
With a number of hard constraints (i.e., [[die size]] and power dissipation), the ARM2 solution is a very conservative 2-bit multiplier. Unlike the shifter which can shift the first ALU operand by some amount of bits in almost every instruction, the multiplier is typically inoperative. Only the <code>MUL</code> and <code>MLA</code> make use of it. When that happens the multiplier is invoked. Each cycle the 2-bit Booth's algorithm multiplication is performed. The result is fed through the ALU to a destination register. The destination register is also used to hold the intermediate value which can last up to 16 cycles for all 32 bits. For this reason using the same destination register as the source has been prohibited as it would invoke [[undefined behavior]]. Since multiplication is commutative, swapping the two operands around should resolve this problem.
 
 
The second instruction implemented, the <code>MLA</code>, supports multiply and accumulate. This instruction takes advantage of the fact that the ALU is situated after the multiplier, allowing a final addition operation to be performed on the result of the multiplication prior to saving the value back into the destination register.
 
 
{{clear}}
 
 
===== Interrupt =====
 
The ARM2 has fast interrupt capabilities for real-time responses. Exceptions can occur internally or externally to the chip. The average interrupt latency is sub-2 µs with a worst case of sub-6 µs. An interrupt must wait for the currently executing instruction to complete before the interrupt executes. The current instruction completes only when a new instruction starts fetching. When an exception takes place, the processor sets the [[PC]] to a specific memory address within the [[interrupt vector table]].
 
 
For example, in the case of <code>RESET</code> pin being asserted, the current pipeline gets flushed and the PC is forced to execute from address 0x0.
 
 
===== Multi-Cycle Instruction =====
 
[[File:arm1 multi-cycle.svg|left|400px]]
 
A number of ARM instructions cannot be implemented in a single cycle given the limited resources of the ARM2 (i.e., a single [[ALU]] and a single [[shifter]]). Instructions such as a store {{arm|STR}} (store register) requires calculating the effective address before it can store the data. To solve this problem, the [[ARM2]] effectively runs the same instruction through the execute stage two to three times - in the first execute cycle is used to compute the address while the second execute stage the data store.
 
 
 
For example, in the case of a <code>STR R2, [R3, #4]</code>, in the first execute cycle the processor will perform <code>Address = R3 + 4</code>. ARM1 will then run another execute stage for this instruction. In the second cycle, ARM1 will generate a <code>DOUT = R2</code> at the address generate previously and assert the appropriate pins to indicate this is a write.
 
 
<table style="border-spacing: 10px; border: 1px solid black; text-align: center;" class="wikitable">
 
<tr><td rowspan="6">{{arrow|down}}</td><th><code>ADD</code></th><td>''Fetch''</td><td>''Decode''</td><td>''Execute''</td></tr>
 
<tr><th><code>STR</code></th><td>&nbsp;</td><td>''Fetch''</td><td>''Decode''</td><td>''Address<br>Calculate''</td><td>''Data<br>Store''</td></tr>
 
<tr><th><code>ADD</code></th><td>&nbsp;</td><td>&nbsp;</td><td>''Fetch''</td><td>&nbsp;</td><td>''Decode''</td><td>''Execute''</td></tr>
 
<tr><th><code>ADD</code></th><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>''Fetch''</td><td>&nbsp;</td><td>''Decode''</td><td>''Execute''</td></tr>
 
<tr><th><code>ADD</code></th><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>''Fetch''</td><td>''Decode''</td><td>''Execute''</td></tr>
 
<tr><td colspan="9">Time {{arrow|right}}</td></tr>
 
</table>
 
 
{{clear}}
 
 
 
===== Block-transfer =====
 
{{see also|Block-Transfer Instructions}}
 
 
{{empty section}}
 
{{empty section}}
<!--
 
  Talk about the priority encoder ...
 
-->
 
  
 
== Die ==
 
== Die ==
 
* [[2 µm process]]
 
* [[2 µm process]]
 
* 27,000 [[transistors]]
 
* 27,000 [[transistors]]
* 5.842 mm x 5.842 mm (230 mils x 230 mils)
+
* ~5.5 mm x 5.5 mm
* 34.13 mm² die size
+
* 30.25 mm² die size
  
 
== All ARM2 Chips ==
 
== All ARM2 Chips ==
<!-- NOTE:
+
{{empty section}}
          This table is generated automatically from the data in the actual articles.
 
          If a microprocessor is missing from the list, an appropriate article for it needs to be
 
          created and tagged accordingly.
 
 
 
          Missing a chip? please dump its name here: http://en.wikichip.org/wiki/WikiChip:wanted_chips
 
-->
 
{{comp table start}}
 
<table class="comptable sortable tc11 tc12 tc13">
 
<tr class="comptable-header"><th>&nbsp;</th><th colspan="12">List of ARM2-based Processors</th></tr>
 
{{comp table header 1|cols=Process, Launched, Frequency, Power Dissipation, Max Memory}}
 
{{#ask: [[Category:all microprocessor models]] [[instance of::microprocessor]] [[microarchitecture::ARM2]]
 
|?full page name
 
|?model number
 
|?microarchitecture
 
|?first launched
 
|?base frequency#MHz
 
|?power dissipation
 
|?max memory#MiB
 
|format=template
 
|template=proc table 3
 
|userparam=7
 
|mainlabel=-
 
|valuesep=,
 
}}
 
{{comp table count|ask=[[Category:all microprocessor models]] [[instance of::microprocessor]] [[microarchitecture::ARM2]]}}
 
</table>
 
{{comp table end}}
 
  
 
== References ==
 
== References ==
 
* Furber, S. B., and A. R. Wilson. "The Acorn RISC Machine ߞ an architectural view." Electronics and Power 33.6 (1987): 402-405.
 
* Furber, S. B., and A. R. Wilson. "The Acorn RISC Machine ߞ an architectural view." Electronics and Power 33.6 (1987): 402-405.

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

This page is a member of 1 hidden category:

codenameARM2 +
core count1 +
designerAcorn Computers +
first launched1986 +
full page nameacorn/microarchitectures/arm2 +
instance ofmicroarchitecture +
instruction set architectureARMv2 +
manufacturerVLSI Technology + and Sanyo +
microarchitecture typeCPU +
nameARM2 +
pipeline stages3 +
process2,000 nm (2 μm, 0.002 mm) +