Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Digital design with CPLD applications and VHDL (R. Dueck, 2000)

.pdf
Скачиваний:
259
Добавлен:
12.08.2013
Размер:
9 Mб
Скачать

700 A P P E N D I X B • VHDL Language Reference

END PROCESS;

 

 

3.1.1Evaluating Clock Functions

As implied in previous examples, the state of a system clock can be checked with an IF statement using the predefined attribute called EVENT. The clause clock’EVENT (“clock tick EVENT”) is true if there has been activity on the signal called clock. Thus (clock’EVENT and clock ‘1’) is true just after a positive edge on clock.

3.2 Case Statement

A case statement is used to execute one of several sets of statements, based on the evaluation of a signal.

Syntax:

CASE __expression IS

WHEN __constant_value => __statement; __statement;

WHEN __constant_value => __statement; __statement;

WHEN OTHERS => __statement; __statement;

END CASE;

EXAMPLES: —— Case evaluates 2-bit value of s and assigns

——4-bit values of x and y accordingly

——Default case (others) required if using STD_LOGIC CASE s IS

WHEN “00” =>

y <= “0001”; x <= “1110”;

WHEN “01” =>

y <= “0010”; x <= “1101”;

WHEN “10” =>

y <= “0100”; x <= “1011”;

WHEN “11” =>

y <= “1000”; x <= “0111”;

WHEN others => y <= “0000”;

A P P E N D I X B • VHDL Language Reference

701

x <= “1111”;

END CASE;

——This case evaluates the state variable “sequence”

——that can have two possible values: “start” and “continue”

——Values of out1 and out2 are also assigned for each case. CASE sequence IS

WHEN start =>

IF in1 = ‘1’ THEN

sequence <= start; out1 <= ‘0’;

out2 <= ‘0’; ELSE

sequence <= continue; out1 <= ‘1’;

out2 <= ‘0’;

END IF;

 

WHEN continue =>

 

sequence <= start;

 

out1 <= ‘0’;

 

out2 <= ‘1’;

 

END CASE;

 

 

A P P E N D I X C

Manufacturers’ Data Sheets

Data Sheet List

Device

Description

Source/File Name

Pages

 

 

 

 

74LS00

Quad 2-input NAND Gate

Motorola/sn74ls00rev6.pdf

703

74LS02

Quad 2-input NOR Gate

Motorola/sn74ls02rev5.pdf

705

74LS04

Hex Inverter

Motorola/sn74ls04rev6.pdf

707

74LS05

Hex Inverter (Open Collector)

Motorola/sn74ls05rev6.pdf

709

74LS06/16

Hex Inverting Buffer (Open Collector)

Texas Instruments/sdls020a.pdf

711

75LS07

Hex Noninverting Buffer (Open Collector)

Texas Instruments/sdls021a.pdf

714

74LS08

Quad 2-input AND Gate

Motorola/sn74ls08rev6.pdf

717

74LS32

Quard 2-input OR Gate

Motorola/sn74ls32rev6.pdf

719

74LS86

Quard 2-input XOR Gate

Motorola/sn74ls86rev6.pdf

721

74F00

Quad 2-input NAND Gate

Texas Instruments/sdfs035a.pdf

723

74AS/ALS00

Quad 2-input NAND Gate

Texas Instruments/sdas187a.pdf

726

74HC00

Quad 2-input NAND Gate

Motorola/mc74hc00arev7a.pdf

731

74HCT00

Quad 2-input NAND Gate (TTL Input Levels)

Motorola/mc74hct00arev6.pdf

735

74VHC00

Quad 2-input NAND Gate

Motorola/mc74vhc00arev0.pdf

738

74VHCT00

Quad 2-input NAND Gate (TTL Input Levels)

Motorola/mc74vhct00arev0.pdf

741

74HCU04

Hex Inverter (Unbuffered)

Motorola/mc74hcu04arev1.pdf

744

74HC4049/4050

Hex Buffer

Motorola/mc74hc4049rev6.pdf

749

74LVX00

Quad 2-input NAND Gate

Motorola/mc74lvx00rev0b.pdf

753

74LCX00

Quad 2-input NAND Gate

Motorola/mc74lcx00rev1.pdf

756

MC14XXXB

4000B-series CMOS Gates

Motorola/mc14001brev3.pdf

759

 

 

 

 

A P P E N D I X C • Manufacturers’ Data Sheets

703

704 A P P E N D I X C • Manufacturers’ Data Sheets

A P P E N D I X C • Manufacturers’ Data Sheets

705

706 A P P E N D I X C • Manufacturers’ Data Sheets

A P P E N D I X C • Manufacturers’ Data Sheets

707

 

 

 

VCC

14

 

13

 

12

 

11

 

10

 

9

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

2

 

3

 

4

 

5

 

6

 

7

GND

GUARANTEED OPERATING RANGES

Symbol

Parameter

Min

Typ

Max

Unit

 

 

 

 

 

 

VCC

Supply Voltage

4.75

5.0

5.25

V

TA

Operating Ambient

0

25

70

5C

 

Temperature Range

 

 

 

 

 

 

 

 

 

 

IOH

Output Current ± High

 

 

± 0.4

mA

IOL

Output Current ± Low

 

 

8.0

mA

http://onsemi.com

LOW

POWER

SCHOTTKY

14

1

PLASTIC

N SUFFIX

CASE 646

14

1

SOIC

D SUFFIX

CASE 751A

ORDERING INFORMATION

Device

Package

Shipping

 

 

 

SN74LS04N

14 Pin DIP

2000 Units/Box

 

 

 

SN74LS04D

14 Pin

2500/Tape & Reel

 

 

 

708 A P P E N D I X C • Manufacturers’ Data Sheets

SN74LS04

DC CHARACTERISTICS OVER OPERATING TEMPERATURE RANGE (unless otherwise specified)

 

 

 

Limits

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

Parameter

Min

Typ

Max

Unit

Test Conditions

 

 

 

 

 

 

 

 

VIH

Input HIGH Voltage

2.0

 

 

V

Guaranteed Input HIGH Voltage for

 

 

All Inputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VIL

Input LOW Voltage

 

 

0.8

V

Guaranteed Input LOW Voltage for

 

 

 

All Inputs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VIK

Input Clamp Diode Voltage

 

± 0.65

± 1.5

V

VCC = MIN, IIN = ± 18 mA

VOH

Output HIGH Voltage

2.7

3.5

 

V

VCC = MIN, IOH = MAX, VIN = VIH

 

 

 

 

or VIL per Truth Table

 

 

 

 

 

 

VOL

Output LOW Voltage

 

0.25

0.4

V

IOL = 4.0 mA

VCC = VCC MIN,

 

 

 

 

 

VIN = VIL or VIH

 

0.35

0.5

V

IOL = 8.0 mA

 

 

 

per Truth Table

IIH

Input HIGH Current

 

 

20

A

VCC = MAX, VIN = 2.7 V

 

 

0.1

mA

VCC = MAX, VIN = 7.0 V

 

 

 

 

IIL

Input LOW Current

 

 

± 0.4

mA

VCC = MAX, VIN = 0.4 V

IOS

Short Circuit Current (Note 1)

± 20

 

±100

mA

VCC = MAX

 

 

Power Supply Current

 

 

 

 

 

 

ICC

Total, Output HIGH

 

 

2.4

mA

VCC = MAX

 

 

Total, Output LOW

 

 

6.6

 

 

 

 

 

 

 

 

 

 

 

Note 1: Not more than one output should be shorted at a time, nor for more than 1 second.

AC CHARACTERISTICS (TA = 255C)

 

 

 

Limits

 

 

 

 

 

 

 

 

 

 

Symbol

Parameter

Min

Typ

Max

Unit

Test Conditions

 

 

 

 

 

 

 

tPLH

Turn±Off Delay, Input to Output

 

9.0

15

ns

V = 5.0 V

 

 

 

 

 

 

CC

t

Turn±On Delay, Input to Output

 

10

15

ns

CL = 15 pF

PHL