Docsity

Data Flow Modeling in VHDL: Behavioral Modeling and Signal Assignment Statements, Study notes of Electrical and Electronics Engineering

Partial preview of the text

Download Data Flow Modeling in VHDL: Behavioral Modeling and Signal Assignment Statements and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

331_

Data Flow Modeling in VHDL

ECE-331, Digital Design

Prof. Hintz

Electrical and Computer Engineering

331_

 Modeling Styles

Behavioral Modeling

between the input and outputExplicit definition of mathematical relationship

No implementation information

Structural Modeling

particular structureImplicit definition of I/O relationship through

Interconnection of components

331_

 Data Flow Model

Concurrent Statements

Execute in arbitrary order

changesExecute only when any of input variables

Local_Sig_

In_

AND

In_

Local_Sig_

In_

OR

Local_Sig_1;

331_

 Signal Assignment Statements

Two Types

statementConditional concurrent signal assignment

statementSelected concurrent signal assignment

EquivalentEach of These Has a Sequential Process

EquivalentEither Form Can Be Used and Are

331_

 Conditional Statements

Truea Signal When A Condition Is Evaluated AsThe Value of an Expression Is Assigned to

Condition Must Evaluate to a BOOLEAN

331_

 BIT or BOOLEAN?

Logical Types Are Not Equal

BIT

for signals

 (^) ‘0’ or ‘1’

 (^) Character type

BOOLEAN

for conditions

 (^) TRUE or FALSE

331_

signal_identifier Conditional Concurrent Syntax

options

conditional_waveforms

options

[ guarded

] [

delay_mechanisms

]

conditional_waveforms

waveform

when

condition

else }

waveform

[ when

condition

]

331_

waveform Waveform Syntax

(^) value_expression

[

after

time_expression

]

331_

If Statement,

e.g.,

entity

NiCadCharger

is

port (

Voltage, Current

in

real

AC

in

bit

Charged, Recharge

out

bit)

end entity

NiCadCharger

331_

If Statement,

e.g.,

architecture

ChargerArch

of

NiCadCharger

is begin Charger_A:

process (

Voltage

Current

AC

) is

begin if

Voltage >= 9.

then

Charged

Recharge <= ‘0’

331_

 Select Conditional Statements

ExecutedDetermines Which Statements AreThe Particular Value of an Expression

Statement Is The Case StatementConcurrent Conditional AssignmentThe Sequential Equivalent To the Select

331_

with Select Concurrent Syntax

expression

select

signal_identifier

options

selected_waveforms

selected_waveforms

waveform

when

choices

waveform

when

choices

331_

choices Alternatives for “choices”

simple_expression

discrete_range

element_simple_name

{ others )

|

331_

Choices in Case Statements

Analysis PhaseLocally Static, Determined During

Value of Selector ExpressionExactly One Choice for Each Possible

EachMore Than One Choice Can Be Listed for

When

Others

: Precedes the Alternative to Be

Used If All Other Case Alternatives Fail