Docsity

Digital Systems Design Methods 1 - Project | CSCE 491, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
97/08/12
1
Page 1
2005/8/31
Week 2
Digital Systems Design Methods-1
Ā© 2003 Dr. James P. Davis
Some figures from Tanenbaum, 4th ed., ©1999 Prentice-Hall.
CSCE 491
CSCE 491
Capstone Computer Design Project
Capstone Computer Design Project
Page 2©2003 Dr. J ames P. Davis
Week 2
Week 2 -
-Outline
Outline
zDigital Systems Design Methods.
9Structural – decomposition, refinement
9Functional – input/output response specification.
9Behavioral/ASM – sequencing and scheduling of operations in the data path.
9Behavioral/Timing – input/output response over some time frame.
zClocking specification.
9Use waveform specification as a means for defining characteristic system behavior, based
on arrival of input signals and the resultant response of the system, and its internal,
intermediate actions.
zASM Diagrams.
9We can also start with a truth table to define the equations forthe outputs based on value
combinations of the inputs.
9If we include all inputs—both data and control—then the truth tables can become quite
large.
9However, what we are looking to identify from the equations is the Sum of Products (SoP)
form, that can be used to identify which operations are to be scheduled in which states of
the state machine (should one be required).
9Note: we use truth tables for combinational logic function specification, but sometimes
these combinational logic functions are under the sequencing control of a state machine.
Page 3©2003 Dr. J ames P. Davis
Week 2
Week 2 -
-Objective
Objective
zObjective: To gain comprehensive enough understanding of
Algorithmic State Machine notation in order to use it to create
digital circuit and systems architecture.
zMeans:
9Modeling the control path as a Finite State Machine (FS M).
9Modeling the data path operations using the Register Tr ansfer
Notation (RTN).
9Applying the underlying assumptions about timing behavior based on
whether we use registered or non-registered elements in the data
path. Registered elements have a one-cycle delay from when t hey are
scheduled in the FSM and when the result appears on the output of
data path registers.
9Assuming ā€œunit delayā€ in the scheduling of data path operatio ns from
the control path of the state machine.
zResult: Construct architectures easily from abstract system models
described in UML, where these models are ā€œcycle accurateā€, but
not necessarily accurate in terms of a set of specific VLSI circuit
delays.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Digital Systems Design Methods 1 - Project | CSCE 491 and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

Week 2

Digital Systems Design Methods-

Ā© 2003 Dr. James P. Davis

Some figures from Tanenbaum, 4

th

ed., ©1999 Prentice-Hall.

CSCE 491CSCE 491

Capstone Computer Design ProjectCapstone Computer Design Project

Ā© 2003 Dr. James P. Davis Page 2

Week 2Week 2 -- OutlineOutline

z Digital Systems Design Methods.

9 Structural – decomposition, refinement

9 Functional – input/output response specification.

9 Behavioral/ASM – sequencing and scheduling of operations in the data path.

9 Behavioral/Timing – input/output response over some time frame.

z Clocking specification.

9 Use waveform specification as a means for defining characteristic system behavior, based

on arrival of input signals and the resultant response of the system, and its internal,

intermediate actions.

z ASM Diagrams.

9 We can also start with a truth table to define the equations for the outputs based on value

combinations of the inputs.

9 If we include all inputs—both data and control—then the truth tables can become quite

large.

9 However, what we are looking to identify from the equations is the Sum of Products (SoP)

form, that can be used to identify which operations are to be scheduled in which states of

the state machine (should one be required).

9 Note: we use truth tables for combinational logic function specification, but sometimes

these combinational logic functions are under the sequencing control of a state machine.

Ā© 2003 Dr. James P. Davis Page 3

Week 2Week 2 -- ObjectiveObjective

z Objective: To gain comprehensive enough understanding of

Algorithmic State Machine notation in order to use it to create

digital circuit and systems architecture.

z Means:

9 Modeling the control path as a Finite State Machine (FSM).

9 Modeling the data path operations using the Register Transfer Notation (RTN).

9 Applying the underlying assumptions about timing behavior based on whether we use registered or non-registered elements in the data path. Registered elements have a one-cycle delay from when they are scheduled in the FSM and when the result appears on the output of data path registers.

9 Assuming ā€œunit delayā€ in the scheduling of data path operations from the control path of the state machine.

z Result: Construct architectures easily from abstract system models

described in UML, where these models are ā€œcycle accurateā€, but

not necessarily accurate in terms of a set of specific VLSI circuit delays.

Ā© 2003 Dr. James P. Davis Page 4

I. Overview:

Review of Logic Concepts and

Basic Device Functions

Ā© 2003 Dr. James P. Davis Page 5

Levels of Abstraction in VLSI System DesignLevels of Abstraction in VLSI System Design

z A design transforms from

"concept" to "implementation" in

a series of ordered levels.

z From the highest level to lower

levels of design "abstraction", a design is iteratively refined.

z The design description is verified

and validated at each level, often cycling between levels of

abstraction.

z Design descriptions are

described using one or more

domain representations (Behavior, Structure, Physical).

Architectural Algorithm

Behavioral

Functional/RTL

Structural

Geometrical

block diagram

flowchart

state equations

state diagram

flowdiagram

RTL notation

datapath diagram

truth table

schematic diagram

netlist

layout

mask

queueing network

petri net

Analysis models to be done in UML.

Design models to be done as ASM charts.

Ā© 2003 Dr. James P. Davis Page 6

Systems Design Systems Design – – Structure of ComputersStructure of Computers

z Basic systems components of

Computer:

9 CPU, Memory, I/O Devices, Bus

z CPU further decomposes into

basic components:

9 Control unit, Arithmetic Logic Unit

(ALU), Registers

Source: A. Tanenbaum, 4th^ ed., 1999.

Ā© 2003 Dr. James P. Davis Page 10

Review of Boolean Representation Review of Boolean Representation

z Laws and Theorems of Boolean algebra:

9 Used to transform Boolean equations into appropriate forms.

9 Used to simplify or expand Boolean expressions, depending on the form of the expression.

Source: Tanenbaum, 4 th^ ed. Ā© 1999, Prentice-Hall

Ā© 2003 Dr. James P. Davis Page 11

Review of GateReview of Gate--level Deviceslevel Devices

z Symbols and Truth tables for 5 basic gate-level logic gates: NOT,

NAND, NOR, AND, OR.

Source: Tanenbaum, 4 th^ ed. Ā© 1999, Prentice-Hall

Ā© 2003 Dr. James P. Davis Page 12

Review of GateReview of Gate--level Deviceslevel Devices

z XOR Logic Function

9 There is generally no XOR gate in a technology library. It is realized using other gate structures.

9 The Truth table for XOR and 3 different circuits that realize the function for two input signals.

Source: Tanenbaum, 4 th^ ed. Ā© 1999, Prentice-Hall

Ā© 2003 Dr. James P. Davis Page 13

Review of GateReview of Gate--level Deviceslevel Devices

z Full Adder circuit:

9 This circuit takes two single- bit inputs and adds them together to produce a Sum as output.

9 The Full Adder also has a Carry (called a Carry Out) like the Half Adder.

9 The Full Adder also has a Carry In signal, allowing Carry Out from earlier adder stage to be connected.

9 This allows a multi-bit, multi- stage adder circuit to be constructed.

Source: Tanenbaum, 4 th^ ed. Ā© 1999, Prentice-Hall

Ā© 2003 Dr. James P. Davis Page 14

Review of Gate- Review of Gate-level Deviceslevel Devices

z Comparator (EQ):

9 COMP allows comparison of two different inputs to check if they are equal. Alternate circuits evaluate the relative magnitude of two inputs.

9 If they are equal, the output is HIGH, but if they are not equal, the output is LOW.

9 The comparison must be done with two signal inputs of equal width.

9 The output of the Comparator operation is a single-bit signal.

Source: Tanenbaum, 4 th^ ed. Ā© 1999, Prentice-Hall

Ā© 2003 Dr. James P. Davis Page 15

Review of Gate- Review of Gate-level Deviceslevel Devices

z 8-input Multiplexer (MUX):

9 MUX allows the signal value of one of its data inputs (D0 – D7) to pass to the output F.

9 The selection of the signal to be passed is controlled by SELECT lines (A, B, C).

9 The number of select lines, n, is based on a power of 2 for the number of inputs, m. So, if we have m inputs, we’ll need n select lines so that 2n=m.**

9 The MUX inputs and output must be the same width, and the SELECT lines are 1-bit each.

Source: Tanenbaum, 4 th^ ed. Ā© 1999, Prentice-Hall

Ā© 2003 Dr. James P. Davis Page 19

II. Overview:

Digital Systems Modeling &

Design

Ā© 2003 Dr. James P. Davis Page 20

SummarySummary -- Specifying a Digital SystemSpecifying a Digital System

z Design

structure

9 Hierarchical block

diagrams

9 HDL code

z Design

function

9 Data path

diagrams

9 Truth tables

9 HDL code

z Design timing

9 Timing diagrams

z Design

behavior

9 State diagrams

9 ASM/flow

diagrams

9 HDL code

s

s

s

aSig

outSig

idleSig

^RESCLK (rising)

01

outSig

^outSig aReg <- '4'bReg <- '2' aReg <- '4'bReg <- '2'

aReg <- inBus bReg <- '1'

aReg <- '0' bReg <- '0'

Block_1 Block_

Block_

Block_1 Block_

Block_ Block_4Block_

A B C D f(A,B,C,D) 00 00 00 00 11 00 00 00 01 10 00 00 01 00 01 00 00 00 10 10 00 00 10 00 01

entity DRAM_Controller is port ( CLK : in bit; RES : in bit; WORD_IN : in bit_vector (7 downto 0 ); end DRAM_Controller; architecture ARTIFACT of DRAM_Controlle signal CYCLES_DONE : in bit; ...

Concurrent Flowdiagrams

Hierarchical Datapath Diagrams

Hierarchical Block Diagrams

Truth Tables

VHDL & Verilog

Timing Diagrams

CLK STATE1 s0 s1 s6 s1 s6 s1 s STATE2 s2 s STATE C

ASSERT_

AS

s4 s

ASSERT_

AS

s

C

RES

LCK ADR BMR

PRK

State Diagrams

Ā© 2003 Dr. James P. Davis Page 21

Systems DesignSystems Design -- StructureStructure

z Block diagram: Used to partition and decompose a design into its functional units.

9 Step #1: Identify "top level" and

all functional operations that

transform the application's data.

9 Step #2: Group the functions by

how the data is manipulated, or

by what resources are needed.

9 Step #3: Separate different

functions from each other by

"interconnect" that shows the flow

of data.

9 Step #4: Decompose more

"abstractā€œ functions into more

"primitive" sets of functions that

operate on data.

9 Step #5: Repeat Step #4 until all

the functions are fully

decomposed into a hierarchy of

"primitive" units.

Higher-level

Block

Block name Block type

block name

Bounding Box (Encapsulates block's internal structure and interconnect)

UART block_ Architectural - Local Input pin Input port

Output pin (appears as Output port

Bi-directional pin (appears as Bi-directional port

Internal output/Buffer pin (appears as Buffer port

Functional

at higher level)

at higher level)

at higher level)

Top_Level UART Architectural - Local

Ā© 2003 Dr. James P. Davis Page 22

802.11 WLAN802.11 WLAN –– MAC Block DiagramMAC Block Diagram

Ā© 2003 Dr. James P. Davis Page 23

Gate Level DesignGate Level Design –– Circuit StructureCircuit Structure

z 1-bit Arithmetic Logic Unit (ALU)

9 The ALU provides

many functions that are

selectable using control

signals.

9 The ALU has an

arithmetic circuit, a

logic circuit, and

decoding logic to

determine which

function to select.

9 Only one ALU function

can be selected at a

time.

Source: A. Tanenbaum, 4

th

ed., 1999.

Ā© 2003 Dr. James P. Davis Page 24

Register Level Design – Register Level Design– Circuit StructureCircuit Structure

z Arithmetic Logic Unit (ALU)

9 Provides the arithmetic, logic and

other data functions in a single

package.

9 ALU functions are selectable

using control signals.

9 Individual gate-level elements

are cascaded together to form an

ALU of the computer’s word

length.

Source: A. Tanenbaum, 4th^ ed., 1999.

Ā© 2003 Dr. James P. Davis Page 28

Systems DesignSystems Design –– Behavior (Response)Behavior (Response)

z Timing Diagram:

9 Used to describe the behavior in

terms of changes in data values

or state information over time.

9 Each signal or quantity of interest

has its value history recorded (or

anticipated) along the time axis.

9 Horizontal axis: advancing in time

(such as during simulation).

9 Vertical axis: a row for each

signal or quantity of interest.

9 Vertical bars allow specific time

markets to be set (usually

according to a system clock

signal).

Source: A. Tanenbaum, 4th^ ed., 1999.

Ā© 2003 Dr. James P. Davis Page 29

Gate Level DesignGate Level Design –– Device TimingDevice Timing

z Setup Time

9 Time t su is the amount of time we must keep stable data on the input prior to

sampling at the active clock edge.

z Hold Time

9 Time t h is the amount of time the input signal value must be stable after the

active clock edge, so that it can be sampled by the flip flop correctly.

z Example: D flip flop

Source: A. Tanenbaum, 4

th

ed., 1999.

Ā© 2003 Dr. James P. Davis Page 30

Register Level DesignRegister Level Design –– Clocking SchemesClocking Schemes

  • A clocking element
    • An oscillating crystal with

properties that allow it to serve as

a synchronizing element in digital

designs.

  • Timing diagram
    • Graphical means to indicate

expected or observed timing

behavior of a design.

  • Represented by a waveform of

significant signals, their timing and

values at each instant.

  • Multiple clocks
    • Many designs operate on the clock

to generate some multiple or

fraction of the whole clock signal,

which could be symmetric or

asymmetric to the system clock.

Source: A. Tanenbaum, 4th^ ed., 1999.

Ā© 2003 Dr. James P. Davis Page 31

Partitioning into Control and Datapath Partitioning into Control and Datapath

Control Unit

steering logic register clocked

logic

register clocked

MUX

Data Path Unit

Data in

Data out

Control in

Status Select

Control out

combin.

State Registers

input/next state decoding logic (^) CLK

inputs

present state information

next state information

output decoding logic

control outputs

^RES

Ā© 2003 Dr. James P. Davis Page 32

Finite State Machine ModelFinite State Machine Model

Components of FSM Model:

9 State registers, input synchronization registers (optional) and output filter registers

(optional).

9 Next state decoding logic, and output decoding logic - combinational logic blocks.

9 Input signals to the state machine, which are inputs to the next state and output decoding

logic blocks (could be synchronized to clock with input registers).

9 Next state information, which is generated as a result of input/next state decoding logic.

9 Present state information, output from the state registers, which is fed back as an input to

both next state and output decoding logic blocks.

9 Outputs from the state machine - either generated synchronously from the output of the

state registers (also used as present state information), or asynchronously as output of the

output decoding logic block (which takes input and present state information to produce

outputs). Could be filtered using output registers to eliminate possible signal transients.

CLK

State

Registers

input/next state decoding logic

inputs

present state information

next state information

output decoding logic CLK

input synchronizing registers

CLK

control outputs output filtering registers

inputs

Dn Qn Dn Qn Dn Qn

Ā© 2003 Dr. James P. Davis Page 33

Finite State Machine ModelFinite State Machine Model

z Moore machines:

9 Control outputs generated by the state machine are dependent only on the present state information****.

9 The control outputs are synchronized to the clock that controls state transitions. 9 Moore machines are used when it is important to synchronize all control actions with the change in state, and thus, by the clock. 9 Moore machines effectively filter out transients, and can be used to eliminate race conditions when inputs are unfiltered.

input/next state

decoding logic

next state

present

state

output decoding

logic

control

outputs

inputs

StateRegisters

Ā© 2003 Dr. James P. Davis Page 37

Register Level DesignRegister Level Design –– Clocking SchemesClocking Schemes

z Scheme 1

9 Single-phase, rising or falling edge clocks.

z Scheme 2

9 Two-phase overlapping, rising or falling edge clocks.

z Scheme 3

9 Two-phase non-overlapping, rising and/or falling edge clocks.

Ā© 2003 Dr. James P. Davis Page 38

III. Lecture:

Model-Based Design Notation:

The Algorithmic State Machine

Ā© 2003 Dr. James P. Davis Page 39

Taxonomy of ASM Diagram Concepts Taxonomy of ASM Diagram Concepts

State (^) Binary_Condition

Conditional_Output

Case_Condition

RTN_Expression

Flowdiagram_Model ASM_Construct 1..*

Contains_Model_Us ing 1..*

State_Block

Thread

Clock_Spec

Event_Spec

Bus Bus_Name : type = Text

Single-bit_Signal Multi-bit_Bus Synchronous_Enable_Event Reset_Event

Case_Expression Condition_Expression Assertion Bus_Assignment Macro-function_Assignment

Ā© 2003 Dr. James P. Davis Page 40

Composition of ASM ConceptsComposition of ASM Concepts--1^1

Flowdiagram_Model

Thread

1..1..

Contains

State_Block

1..1..

Contains

St ate

11

Contains

Binary_Condition

0.. *0.. *

Contains

Case_Condition

0..0..

Contains

Conditional_Out put

0..0..

Contains

A given register-transfer expression must appear on a St ate, Condit ion, Case, or Conditional_Output. However, it can appear on States and Conditional Out puts but , because of the syntax, cannot appear on st ates and conditional outputs AND on Conditions and Cases (because condition expressions are of a different synt ax than Moore and Mealy assignm ents and assert ions ).

RTN_Expres sion 0..*

0..*

0..*

0..*

Schedules

1

0.. *

1

0.. * Evaluates

1

0..*

1

0..*

Evaluates

1..*

0..*

1..*

0..*

Schedules

Event_Spec

1..1..

Contains

Bus Bus_Name : ty pe = Text

Contains

1..1.. 1..1..

References

1..1..

Contains

1..*

Clock_Spec

11

Contains

1..*

Contains

1..* Contains

1..*

Ā© 2003 Dr. James P. Davis Page 41

Composition of ASM ConceptsComposition of ASM Concepts--2 2

Bus_Width Width : type = Integer

Bus_Element_Type Type : type = Enum

Bus_Mode Mode : type = Enum

Bus Bus_Name : type = Text 1

Has_Property 1

Has_Property

Has_Property

Input Output Internal Bi-directional

Register Latch Wire

State

State_Sequence

+previous_state

+next_state 0..*

Ā© 2003 Dr. James P. Davis Page 42

Executable ASM Method

State Machines

The semantics of Moore and Mealy

machine modeling

Ā© 2003 Dr. James P. Davis Page 46

  • If-Then-Else: Nested Statements

ASM DiagramASM Diagram –– Nested Control StructuresNested Control Structures

Source: Roth Ā© 1998 PWS Publishing

Ā© 2003 Dr. James P. Davis Page 47

ASM vs. State DiagramsASM vs. State Diagrams –– Branching Control StructuresBranching Control Structures

Selection: Multi-way Branching, Single Variable

ASM diagrams use case construct for multi-way

branch conditions of a single, multi-bit variable/bus.

Branch conditions are binary or enumerated values.

In ASM diagrams, all undefined transitions are tied

to a default transition. This eliminates possible

transitions to unspecified states, a common cause of

design failure in the field.

State diagrams have no such mechanism, and thus

are ambiguous.

Selection: Multi-way Branching, Multi-variable

In State diagrams: (1) the ordering of transitions is

ambiguous; (2) all transitions aren't specified (device

problems likely in the field); (3) behavior is

unpredictable under all conditions.

In ASM diagrams: (1) ordering of transitions is explicit;

(2) transitions specified for all possible input

combinations (including MVL values); (3) behavior is

predictable.

s

s2 (^) s

a (^0001 ) s1 (^) s

0010 0100 default

a= s0 s

s

a=

s

s

a=

a=

others? ^a & b s0 s

s

^a & c & d

s

s

a & b

^b & c

s

s

a & b 0

s

s

s

^a & b

^a & c & d

^b & c 0

Ā© 2003 Dr. James P. Davis Page 48

ASM vs. State DiagramsASM vs. State Diagrams –– Loop Control StructuresLoop Control Structures

Repetition: "While-Do" Control Loop

While-Do control structure is more apparent in the

ASM diagram, and is consistent with hardware

description language (HDL) constructs.

Single decision point in ASM diagram handles

complexity more easily when multiple terms and

variables are used in looping condition expression.

This type of control construct is used often for

counting the number of loop iterations, where you

test the condition prior to each execution of the loop,

including the first pass.

Repetition: "Repeat-Until" Control Loop

Placement of the decision "diamond" defines the type

of looping construct, and the type of control behavior.

Repetition control structures are used in various styles

of polling loops for implementing handshaking

protocols.

This type of control construct is used often for counting

the number of loop iterations, where you test the

condition after completing each execution of the loop,

requiring execution of at least the first pass.

^a

s

s

^a

a

s

a

a

s

s

s

s

s

s

s

s

^a

s

a

a

Ā© 2003 Dr. James P. Davis Page 49

ASM vs. State DiagramsASM vs. State Diagrams –– Synchronous Transfer of ControlSynchronous Transfer of Control

Control Interrupt Schemes - State Diagrams:

The State diagram models state transitions, but the

prioritization information--when multiple transitions are

possible--isn't clear in the notation, without adding

some additional symbol to indicate priority of the

transitions.

Also, if State transitions have additional conditions, it

isn't clear what happens when conditions aren't met

(incomplete specification). However, this may be

handled by modeling ā€œloopingā€ on a state in some

cases.

Control Interrupt Schemes – ASM Diagrams:

In ASM diagrams, you can either define a test on each

state transition for the specific event using condition

"diamonds", or you can use the Enable Event construct,

indicating that the specified event has precedence over

the normally-specified next state transition. This works

like a priority encoder on the next state decoding logic of

the state machine. At any time when the input is

sampled for determining next state, the transition for the

Enable Event ā€˜a’ will take precedence.

s0 s1 s

s

a

a a

s

s

a 0

s

1

0

0

s

a 1

1

^RES

a

s

s

s

s ^RES : P

a : P

explicit conditional tests

synchronous enable event

Ā© 2003 Dr. James P. Davis Page 50

Executable ASM Method

Datapath

The timing semantics of Moore and

Mealy driven datapath

Ā© 2003 Dr. James P. Davis Page 51

Datapath Logic Design Datapath Logic Design

z Use of memory elements in the data path to store signal values.

9 Purpose is to synchronize the behavior of complex circuits.

9 Benefits of circuit synchronization:

Ā— Eliminate unpredictability of output behavior due to timing skew.

Ā— Create signal stability, as they must have stable values for certain period

of time.

Ā— Better isolate signals from noise transients.

z Use of memory to create complex control structures.

9 Controller sequences operations in the data path.

Storage Registers

Combinational

Logic block

Synchronizing Clock Signal

Storage Registers

Combinational

Logic block

Synchronizing Clock Signal

Inputs Outputs

t

p

t

p

Data path ā€œpipelineā€ -

stage 1

Data path ā€œpipelineā€ -

stage n

Ā© 2003 Dr. James P. Davis Page 55

ASMASM -- Modeling Complex MacroModeling Complex Macro--functionsfunctions

s1 bBus <- nmux(add(a,b), add(a,c), or(band(xnor('b00,cmp(b, 'd1'))),d)

z Create complex datapath descriptions that are efficient, in terms of gate count and delay.

z Pure functional representation that is mathematically sound.

z Lends itself to compact annotation without requiring operator precedence rules.

z Things to remember:

z Macro arguments should match, in terms of bus width , signal type (binary, MVL9, etc.) and signal mode (input, output, etc.).

z Macros should not have an output argument fed back as an input without proper buffering (with register or latch definition for signal/bus specified on LHS of expression.

z Don’t drive a signal/bus as both registered and unregistered (as this causes a multi-drive error , unless using MVL data types with resolution tables).

Ā© 2003 Dr. James P. Davis Page 56

ASM ASM – – User Defined Datapath OperationsUser Defined Datapath Operations

z RTL macro-functions: approx. 30 primitive data path elements in a library.

z Macros are "scalable" - with any number of buses and any bus widths.

z Macros can be used to construct more complex user-defined data path

functions.

9 Macro-function definition: AnyXN(A_bus,B_bus) ::=

BOR(AND(B_bus,NOT(DECO(A_bus))))

9 Macro-function binding: CollisionEvent <- AnyXN(nPort,CollIn)

NOT
AND BOR

A_Bus

B_Bus

C_Bus

nPort

CollIn

select

CollisionEvent

AnyXN

DECO

Ā© 2003 Dr. James P. Davis Page 57

ASM - ASM- Arithmetic MacroArithmetic Macro--functionsfunctions

The ADD, INCR, SUB, DECR macros scale well up to 32 bits; beyond that, it is

better to create custom arithmetic designs that scale more efficiently

[Parhami, 2000].

Ā© 2003 Dr. James P. Davis Page 58

Moore Machine - Moore Machine- MacroMacro--function Assignmentsfunction Assignments

Ā© 2003 Dr. James P. Davis Page 59

Using Boolean OperatorsUsing Boolean Operators vsvs MacroMacro--functionsfunctions

Specifying simple data path operations can be done using either expression operators or macro-

function operators.

Ā© 2003 Dr. James P. Davis Page 60

Carry/Borrow Bit with Arithmetic Macro- Carry/Borrow Bit with Arithmetic Macro-functionsfunctions