images courtesy of addison wesley longman, inc. copyright © 2001 chapter 5 register transfer...

Post on 22-Dec-2015

237 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Chapter 5Chapter 5Register Transfer LanguagesRegister Transfer Languages

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Chapter OutlineChapter Outline

• Micro-operationsMicro-operations

• RTLRTL

• RTL specificationsRTL specifications

• Realizing RTL specificationsRealizing RTL specifications

• VHDLVHDL

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Micro-operationsMicro-operations

• Specify data transferSpecify data transfer

• Do not specify conditions under which Do not specify conditions under which transfers occurtransfers occur

• Do not specify hardware implementationDo not specify hardware implementation

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Example: X Example: X Y Y

X

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Register Transfer LanguageRegister Transfer Language

• Specify micro-operations and when they Specify micro-operations and when they occuroccur

• Format:Format: conditionsconditions: : micro-operationsmicro-operations

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Example: Example: αα: X : X Y Y

X

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Simultaneous Data TransfersSimultaneous Data Transfersαα: X : X Y, Y Y, Y Z Z

Q D

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Invalid Simultaneous TransfersInvalid Simultaneous Transfers

αα: X : X Y, X Y, X Z Z

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Loading Constant Values into Loading Constant Values into RegistersRegisters

αα: X : X 0 0

ββ: X : X 1 1

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Making Transfers Mutually Making Transfers Mutually ExclusiveExclusive

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Multi-bit Data TransfersMulti-bit Data Transfersαα: X : X Y Y

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Bit and Bit-range TransfersBit and Bit-range Transfers

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Arithmetic and Logical Micro-Arithmetic and Logical Micro-operationsoperations

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Shift Micro-operationsShift Micro-operations

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Specifying Digital Specifying Digital Components: D Flip-FlopComponents: D Flip-Flop

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Specifying Digital Components: Specifying Digital Components: JK Flip-FlopJK Flip-Flop

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Specifying Digital Components: Specifying Digital Components: Left Shift RegisterLeft Shift Register

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Specifying Simple SystemsSpecifying Simple Systems

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

System Implementation – Data System Implementation – Data PathsPaths

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

System Implementation – Data System Implementation – Data Paths and ControlPaths and Control

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

System Implementation Using a System Implementation Using a Bus and 3-State BuffersBus and 3-State Buffers

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

System Implementation Using System Implementation Using a Bus and a Multiplexera Bus and a Multiplexer

n o j

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 CounterModulo 6 Counter

• Counts up when U = 1Counts up when U = 1

• Count sequence: 000 Count sequence: 000 001 001 010 010 011 011 100 100 101 101 000 … 000 …

• V is 3-bit output = count valueV is 3-bit output = count value

• C is 1-bit output = 1 when V = 000C is 1-bit output = 1 when V = 000

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 CounterModulo 6 Counter State Table State Table

1 1 11 1 1

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 CounterModulo 6 Counter State Diagram State Diagram

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 CounterModulo 6 Counter RTL RTL SpecificationSpecification

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 CounterModulo 6 Counter System System ImplementationImplementation

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 CounterModulo 6 Counter Another Another System ImplementationSystem Implementation

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Toll Booth ControllerToll Booth Controller

• C = 1 when car is at toll boothC = 1 when car is at toll booth

• I[1..0] indicates coin inputI[1..0] indicates coin input

• Outputs R, G, A:Outputs R, G, A:– Car in toll booth, toll not fully paid: R = 1Car in toll booth, toll not fully paid: R = 1– Toll paid: G = 1Toll paid: G = 1– Car left without paying full toll: R = 1, A = 1Car left without paying full toll: R = 1, A = 1

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Toll Booth Controller StatesToll Booth Controller States

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Toll Booth Controller State TableToll Booth Controller State Table

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Toll Booth Controller State DiagramToll Booth Controller State Diagram

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Toll Booth Controller State Toll Booth Controller State AssignmentsAssignments

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Converting State Transitions Converting State Transitions to RTL Codeto RTL Code

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Converting State Transitions to Converting State Transitions to RTL CodeRTL Code

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Toll Booth Controller RTL Toll Booth Controller RTL Specification (excluding outputs)Specification (excluding outputs)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Toll Booth Controller RTL Toll Booth Controller RTL Specification (outputs)Specification (outputs)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL – VHSIC Hardware VHDL – VHSIC Hardware Description LanguageDescription Language

• Formal syntax – portableFormal syntax – portable

• Platform independentPlatform independent

• Design for PLDs, ASICs, or custom Design for PLDs, ASICs, or custom chipschips

• Simulate designsSimulate designs

• Different levels of abstractionDifferent levels of abstraction

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL Design StructureVHDL Design Structure

• Library sectionLibrary section

• Entity sectionEntity section

• Architecture sectionArchitecture section

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL Library SectionVHDL Library Section

library IEEE;library IEEE;

use IEEE.std_logic_1164.all;use IEEE.std_logic_1164.all;

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL Entity SectionVHDL Entity Section

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL Architecture SectionVHDL Architecture Section

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL – High Level of VHDL – High Level of AbstractionAbstraction

• Modulo 6 counterModulo 6 counter

• Designed as a state machineDesigned as a state machine

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 Counter – Library Modulo 6 Counter – Library and Entity Sectionsand Entity Sections

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Modulo 6 Counter – One StateModulo 6 Counter – One State

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Architecture Section – State Architecture Section – State GenerationGeneration

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Architecture Section – State Architecture Section – State Generation (continued)Generation (continued)

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Architecture Section – State Architecture Section – State TransitionTransition

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL – Low Level of AbstractionVHDL – Low Level of Abstraction

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

VHDL – Advanced VHDL – Advanced CapabilitiesCapabilities

• ComponentsComponents

• TimingTiming

• SimulationSimulation

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

SummarySummary

• Micro-operationsMicro-operations

• RTLRTL

• RTL specificationsRTL specifications

• Realizing RTL specificationsRealizing RTL specifications

• VHDLVHDL

top related