<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
<title>ALU</title>
|
<title>ALU</title>
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
</head><body>
|
</head><body>
|
<!-- Generated by Doxygen 1.2.16 -->
|
<!-- Generated by Doxygen 1.2.16 -->
|
<center>
|
<center>
|
<a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="pages.html">Related Pages</a> </center>
|
<a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="pages.html">Related Pages</a> </center>
|
<hr><h1>ALU<br>
|
<hr><h1>ALU<br>
|
<small>
|
<small>
|
[<a class="el" href="group__pavr__hwres.html">Hardware resources</a>]</small>
|
[<a class="el" href="group__pavr__hwres.html">Hardware resources</a>]</small>
|
</h1><table border=0 cellpadding=0 cellspacing=0>
|
</h1><table border=0 cellpadding=0 cellspacing=0>
|
</table>
|
</table>
|
<dl compact><dt><b>
|
<dl compact><dt><b>
|
ALU connectivity:</b><dd>
|
ALU connectivity:</b><dd>
|
<br>
|
<br>
|
<div align="center">
|
<div align="center">
|
<img src="pavr_hwres_alu_01.gif" alt="pavr_hwres_alu_01.gif">
|
<img src="pavr_hwres_alu_01.gif" alt="pavr_hwres_alu_01.gif">
|
</div>
|
</div>
|
<br>
|
<br>
|
<a class="el" href="group__pavr__pipeline__alu.html#alu_pipe_ref_01">Here</a> it can be seen how the ALU plugs into the pipeline. <br>
|
<a class="el" href="group__pavr__pipeline__alu.html#alu_pipe_ref_01">Here</a> it can be seen how the ALU plugs into the pipeline. <br>
|
<br>
|
<br>
|
The ALU is a 100% <b>combinational</b> device. <br>
|
The ALU is a 100% <b>combinational</b> device. <br>
|
It accepts 2 operands: <ul>
|
It accepts 2 operands: <ul>
|
<li> a 16 bit operand <br>
|
<li> a 16 bit operand <br>
|
This is taken through the Bypass Unit. <li> an 8 bit operand <br>
|
This is taken through the Bypass Unit. <li> an 8 bit operand <br>
|
This is taken through the Bypass Unit. </ul>
|
This is taken through the Bypass Unit. </ul>
|
The ALU output is 16 bits wide. <br>
|
The ALU output is 16 bits wide. <br>
|
</dl><dl compact><dt><b>
|
</dl><dl compact><dt><b>
|
ALU opcodes:</b><dd>
|
ALU opcodes:</b><dd>
|
<ul>
|
<ul>
|
<li>NOP <br>
|
<li>NOP <br>
|
<li>OP1 <br>
|
<li>OP1 <br>
|
Transfers operand 1 directly to the ALU output. <br>
|
Transfers operand 1 directly to the ALU output. <br>
|
OP2 <br>
|
OP2 <br>
|
Transfers operand 2 directly to the lower 8 bits of ALU output. <br>
|
Transfers operand 2 directly to the lower 8 bits of ALU output. <br>
|
<li>ADD8 <br>
|
<li>ADD8 <br>
|
ADC8 <br>
|
ADC8 <br>
|
Adds with carry lower 8 bits of operand 1 with operand 2. <br>
|
Adds with carry lower 8 bits of operand 1 with operand 2. <br>
|
SUB8 <br>
|
SUB8 <br>
|
SBC8 <br>
|
SBC8 <br>
|
<li>AND8 <br>
|
<li>AND8 <br>
|
EOR8 <br>
|
EOR8 <br>
|
OR8 <br>
|
OR8 <br>
|
<li>INC8 <br>
|
<li>INC8 <br>
|
DEC8 <br>
|
DEC8 <br>
|
<li>COM8 <br>
|
<li>COM8 <br>
|
NEG8 <br>
|
NEG8 <br>
|
SWAP8 <br>
|
SWAP8 <br>
|
<li>LSR8 <br>
|
<li>LSR8 <br>
|
ASR8 <br>
|
ASR8 <br>
|
ROR8 <br>
|
ROR8 <br>
|
<li>ADD16 <br>
|
<li>ADD16 <br>
|
Adds without carry operand 1 with operand 2 sign extended to 16 bits. <br>
|
Adds without carry operand 1 with operand 2 sign extended to 16 bits. <br>
|
SUB16 <br>
|
SUB16 <br>
|
<li>MUL8 <br>
|
<li>MUL8 <br>
|
MULS8 <br>
|
MULS8 <br>
|
MULSU8 <br>
|
MULSU8 <br>
|
FMUL8 <br>
|
FMUL8 <br>
|
FMULS8 <br>
|
FMULS8 <br>
|
FMULSU8 <br>
|
FMULSU8 <br>
|
</ul>
|
</ul>
|
</dl><dl compact><dt><b>
|
</dl><dl compact><dt><b>
|
ALU flags:</b><dd>
|
ALU flags:</b><dd>
|
<ul>
|
<ul>
|
<li>H (half carry)<li>S (sign)<li>V (two's complement)<li>N (negative)<li>Z (zero)<li>C (carry) </ul>
|
<li>H (half carry)<li>S (sign)<li>V (two's complement)<li>N (negative)<li>Z (zero)<li>C (carry) </ul>
|
</dl><hr><address align="right"><small>Generated on Tue Dec 31 20:26:30 2002 for Pipelined AVR microcontroller by
|
</dl><hr><address align="right"><small>Generated on Tue Dec 31 20:26:30 2002 for Pipelined AVR microcontroller by
|
<a href="http://www.doxygen.org/index.html">
|
<a href="http://www.doxygen.org/index.html">
|
<img src="doxygen.png" alt="doxygen" align="middle" border=0
|
<img src="doxygen.png" alt="doxygen" align="middle" border=0
|
width=110 height=53></a>1.2.16 </small></address>
|
width=110 height=53></a>1.2.16 </small></address>
|
</body>
|
</body>
|
</html>
|
</html>
|
|
|