Chapter 21

ALU Functions

Abstract

A central part of microprocessors is the ALU (Arithmetic Logic Unit). This block in a processor takes a number of inputs from registers and, as its name suggests, carries out either logic functions (such as NOT, AND, OR, and XOR) on the inputs, or arithmetic functions (addition or subtraction as a minimum), although it must be noted that these will be integer (or fixed point potentially) only and not floating point. This chapter of the book will describe how these types of low level logic and arithmetic functions can be implemented in VHDL and Verilog.

Keywords

Arithmetic and logic unit

Arithmetic functions

21.1 Introduction

A central part of microprocessors is the ALU (Arithmetic Logic Unit). This block ...

Get Design Recipes for FPGAs, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.