of 148 /148
Содержание -Введение 4 1) Общая характеристика программируемой логики 6 1.1) Области применения и основные производители ПЛИС 6 1.2) FPGA технология 7 1.3) CPLD технология 9 2) Аналитический обзор современных САПР 12 2.1) Elaniv System View 13 2.2) Xilinx Foundation Series 14 2.3) Advanced Design System 15 2.4) Altera MAX+plus II 16 3) Методика проектирования ПЛИС в САПР Active-HDL 18 3.1) Процедура проектирования ПЛИС в САПР Active-HDL 18 3.2) Маршрут проектирования ПЛИС в САПР Active-HDL 21 3.3) Обзор и принципы работы основных групп инструментов и редакторов САПР Active-HDL 22 3.3.1) Обзор элементов и групп элементной среды Active-HDL 22 3.3.2) Иерархии групп и инструментов на основании маршрута проектирования ПЛИС в САПР Active-HDL 24 3.3.3) Принципы и основы работы с основными группами инструментов системы Active-HDL 26 1

Metodika Proektirovania PLIS v Pakete Active-HD

  • Author
    -

  • View
    316

  • Download
    15

Embed Size (px)

DESCRIPTION

Active-HDL's guide. Language: russian.

Text of Metodika Proektirovania PLIS v Pakete Active-HD

- 1) 1.1) 1.2) FPGA 1.3) CPLD 2) 2.1) Elaniv System View 2.2) Xilinx Foundation Series 2.3) Advanced Design System 2.4) Altera MAX+plus II 3) Active-HDL 3.1) Active-HDL 3.2) Active-HDL 3.3) Active-HDL 3.3.1) Active-HDL 3.3.2) Active-HDL 3.3.3) Active-HDL 3.3.3.1) Control Tools 3.3.3.1.1)Design Wizard( ) 3.3.3.1.2)Design Browser( ) 3.3.3.1.3)Workspace/design Explorer ( /) 3.3.3.1.4)Design menu 3.3.3.1.5)Library manager 3.3.3.1.6)Console 3.3.3.1.7) 3.3.3.2) Design Entry Tools 3.3.3.2.1)HDE( HDL) 3.3.3.2.2)FSM( ) 3.3.3.2.3)BDE( -) 3.3.3.3) Watch/Debugging tools 3.3.3.3.1)Syntax Checking 3.3.3.3.2)Code Tracing 3.3.3.3.3)State Machine Code Debugging 3.3.3.3.4)Break Points 3.3.3.3.5) 3.3.3.5.1)List window 3.3.3.5.2)Watch window 3.3.3.5.3)Processes window 3.3.3.5.4)Call stack 3.3.3.5.5)Data flow 4 6 6 7 9 12 13 14 15 16 18 18 21 22 22 24 26 26 27 30 34 35 38 40 40 42 53 56 56 60 60 62 63 63 65 65 66 67 68 681

3.3.3.4)Simulation Kernel() 3.3.3.4.1)Stimulators 3.3.3.4.2)Waveform Editor 3.3.3.4.3)Simulations macros 3.3.3.4.4)VDHL testbench 3.3.3.4.5) 3.3.3.4.6)VDHL testbench wizard - - -

70 70 72 73 75 77 84 89 90 91

2

, , , , , () . , , - - HDL (Hardware Description Language - ). HDL ABEL, Verilog VHDL. ABEL (Advanced Boolean Equation Language - ) , Data I/O Corp. . ABEL ( - ) : , , . ABEL VHDL Verilog , , . . VHDL, - Verilog. VHDL Ada, . Ada VHDL . HDL - () . (). :1. HDL - ; 2. ; 3. ,

, HDL -;

3

4. ; 5. 6. ;

7. ;8. .

, . . , . Active - HDL Aldec Inc. (). Aldec Inc. .

1. 4

90- , , ( ). . . 1.1. (39% ). , 26% . , (19%) (16%). , : Alcatel, IBM, Booing, Lockheed, Hewlett Packard, Fujitsu, Hitachi, Silicon Graphics, Texas Instruments, Motorola, Rockwell, Kodak .

. 1.1

. Xilinx. Xilinx , , , . Altera .5

Lattice (59.7 . USD) CPLD . Actel (41.6 . USD). , FPGA CPLD. . 1.2 FPGA - FPGA Field Programmable Gate Array - . FPGA - . 1.2. / () , : , , . FPGA - , .

. 1.2 FPGA

(). "-" . , , , 2000 () 2 , 4 ( ). . . 6

, . . FPGA - . , , . . 1.1 FPGA Xilinx Inc., , Virtex Spartan. FPGA , : , , , , , - , , , ... 1.1 Virtex XCV50 XCV1000 XCS40/XL XCS20/XL XCS05/XL (MHz) () () () () - / () 200 0.22 2.5 57906 2 2.5 1124022 200 0.2 80 0.35/0.5 3.3/5.5 13K-40K 80 0.35/0.5 3.3/5.5 7K-20K 80 0.35/0.5 3.3/5.5 2K-5K Spartan

1728

27648

1862

950

238

180

514

205

160

77

1.3 CPLD - CPLD (Complex Programmable Logic Device 7

) . 1.3 ( 9500). 9500 :1) JTAG - ( IEEE Std. 1149.1)

;2) / (/); 3)

: GTS.

GCK, / GSR,

/ . () 18 () "36 - 1 " 18 36 . () , /. CPLD - Xilinx . 1.2. CPLD - - , , . PLD ( FPGA) : . . , CPLD . 1) JTAG ( IEEE Std. 1149.1) ; 2) / (/); 3) : GCK, / GSR, GTS. / . () 18 () "36 1

8

. 1.3 - CPLD

9

1.2 CoolRuner XCR3320 () (MHz) () "pin - to - pin" () 0 7.5 320 100 5;3 100 XCR22V10 XC9536 10 111 5;3 1000 7.5 0 5 36 100 5;3 100 1000 15 XC952288 288 56.6 5;3 XC9500

10

2. . , , - , . (). , - , , . . () . , . , . , : 11

. PCAD, DesignLab OrCAD. - : - , -, Altera FPGA Xilinx (ASIC) (SOC). (System View) (Microsoft Office, Serenade). MatLab. , , . / , , . . .

2.1. Elanix SystemView SystemView, Elanix, , , . SystemView , , , QAM64. SystemView , (DSP) (FPGA), . . SystemView Professional Edition, , . - , , . : Communications Library 40 , , ; DSP Library , FPGA;12

RF/Analog Library 40 , ; Logic Library ; CDMA/PCS Library , , ; Digital Video Broadcasting (DVB) Library , ; EnTegra Adaptive Filter Library , ; , . , Xilinx, (FPGA), Matlab, . , Windows 95/98 NT, , , , .

2.2. Xilinx Foundation Series Xilinx , , , . Xilinx Foundation Series . () - (Intellectual Property Cores), , . . Xilinx Elanix (DSP). SystemView Elanix Xilinx DSP. Foundation Series Express : Foundation Project Manager. () . , , , ; . EDIF ( XNF). Xilinx Foundation Series Express : LogiBLOX. , (, , ..), , ,13

HDL-; HDL- HDL Editor. HDL. netlist EDIF ( XVHDL). ; Schematic Editor. . LogiBLOX-, FSM-, VHDL- Verilog-; ( ) State Editor. . VHDL-. : - Founda-tion Logic Simulator. , . ; Constraints Editor. ; VHDL FPGA Express. VHDL-; VHDL VHDL Simulator. HDL ; Timing Analyzer. . : Flow Engine , Xilinx; Floorplanner. . CLB ; EPIC. ; PC Hardware Debugger. . , JTAG; PROM File Formater.14

2.3. Advanced Design System /, : , , , . : , , . : , ; DSP Designer. : ; 900 ; ; ; ; HDL ; ; Altera Xilinx. RFIC Designer, : , , , ..; , , S-, Circuit Envelope .. RF Board. : ; ; ; , Cadence Mentor.

2.4. Altera MAX+plus II MAX+plus II . , , , .15

MAX+plus II . , VHDL Verilog, Mentor Graphics, Cadence, Synopsys, Elanix. MAX+plus II , . MAX+plus II VHDL, EDIF, Verilog. EDIF . - PDS ( PLDShell, PALASM) XNF ( XACT Xilinx). , OrCAD, . MAX+PLUS II 11 (. 1). 2.1Hierarchy Display , Graphic Editor WYSIWYG Symbol Editor Text Editor , AHDL, VHDL, Verilog HDL Waveform : Editor Floorplan Editor Compiler Simulator Timing Analyzer , , , Programmer Altera Message , Processor

16

3. Active-HDL 3.1 Active-HDL , . : ; ; . . , ( ) , , , . , , , . Active-HDL . Active-HDL. . 3.1 - : () , .17

,

.

1

1

,

. 3.1 - Active-HDL

18

, . , , . , : (Behavioral model, Interpreted model) . . . , , , - ( ) . . (Functional model) . , ( , ). . . (Structural model) - . . , , . . , . , . (Performance Model, Uninterpreted Model) - ( , ).

(Interface Model, bus functional model) 19

" ". , , , . . , (Mixed - Level Model, Hybrid Model) - , . (Virtual Prototype). ( ) . . " " , , : ; ; . 3.2 Active-HDL , 3.1. , , . , , . 5 . 1. , , , , . , - , - . 2. . Active-HDL , VHDL , , , ... , , , . .20

3. 3 - . , VHDL, . ( VHDL- ) VHDL , , . . . 4. ( ) , .. (Register Transfer Level Model - RTL - model). , , , , .. . 5. 5 , . . , . , .

3.3 Active-HDL. 3.3.1 Active-HDL Active-HDL. , . , , . Active-HDL- , . , , : VHDL , , , ..21

, , , , , . . Control Tools Active-HDL , . , , . , . , Control Tools ( ). Design Entry Tools - . , , , , . Design Entry Tools ( ) . (Simulator Kernel) , , . - , , . ( ) , , .. / (Watch/Debugging Tools) , , Active-HDL . () Debugging Tools . , , , . , () Watch Tools. , ( ), ().

22

3.3.2 Active-HDL

. 3.2 Active-HDL, .

Control Tools. ( 3.2). ( / ; ; ..) Design Entry Tools. Design Entry Tools . VHDL ( ) 23

, . , Debugging Tools . Simulator Kernel. Simulator Kernel . , . , Debugging Tools. , . , Simulator Kernel . : 3.2, Active-HDL () . . 2 3: Control Tools .

24

3.3.3 Active-HDL . 3.3.3.1 Control Tools Control Tools, .

. 3.3 Control Tools

, , . , , , . , . , . , , , Active-HDL , , . Control Tools. Control Tools : Design Wizard, ( ) , , . Design Browser ( ) 25

. Design Tools . Console () , Active-HDL , Active-HDL ( ). , . Design Flow Manager ( ) . (HDE, FSM, BDE) (functional simulation) . Active-HDL 7.1 (Framework)

. 3.4. (Framework) Active-HDL

3.4 . (Design Menu), . , Active-HDL.

3.3.3.1.1 Design Wizard ( ) - , .26

Getting Started (. 3.5) (Open existing workspace) (Create new workspace). , Create new workspace.

. 3.5 -

, , . , . . New Workspace (. 3.6) , . my_designs, , .

. 3.6.-

New Design Wizard (. 3.7) Create an Empty Design with Design Flow ( ).

27

. 3.7 -

, / , Archive-CAD. Archive-CAD Active-HDL . Create an Empty Design with Design Flow , , Lesson_1 . ActiveHDL 7.1 (. 3.8). , : Lessons, Lesson_1. Design Flow Manager.

. 3.8.- (Framework) Active-HDL

28

. New Design Wizard . New Design Wizard , . ( 4 ). HDL -.

3.9- .

3.3.3.1.2 (Design Browser) . - , . , , . . - , . , . . :

29

3.3.3.1.2.1 (Files) Files . . . HDL , :

Files , . , , . Files , . , , , , , . . , , .

. 3.10 -

:30

VHDL Source Code (vhd;vhdl;vhq;tvhd;vho;vhm;vhi), configurations, and testbenches Verilog Source Code (v;vei;veo;vo;vm;vmd;vlb;vlg) and testbenches C/C++ Source Code (cpp;c;h) Verilog Value Change Dump (.vcd) State Diagram (.asf) Block Diagram (.bde) BDE Symbol (.bds) Waveform File (.awf) List File (.lst) Macro (.do) SDF File (.sdf, .sdo) EDIF Netlist (.edf, .edn, .edo) Viewlogic Schematic (.1) TCL Script (.tcl) Active-CAD Test Vector (.asc) Active-CAD Project (.pdf) XNF Netlist (.xnf) Basic Script (.bas) Perl Script (.pl) Drawing (.afc) Bitmap (.bmp) HTML Document (.htm) Design Management Overview Text (.*) External file - . , , Files, . . , -, Files. 3.3.3.1.2.1 Structure Tab Structure Tab . . , , . , : ; ;31

(Value). (, () , , , , ), , . , Structure.

. 3.11 - (VHDL)

, , . , , Open . Structure Tab . 3.3.3.1.2.2 Resource Tab Resource Tab : - , - , , Waveforms - Waveform editor

, , Resources. .

32

3.3.3.1.3 Workspace/Design / )

Explorer

(

Workspace/Design Explorer , , . , , , . Workspace/Design Explorer , Open Workspace File. /My_Designs/Samples_61/ folder, .

. 3.12 - Workspace/Design Explorer

/ Workspace/Design Explorer . / . Workspace/Design Explorer . , , / . Workspace/Design Explorer . - . . / , .

33

3.3.3.1.4 Design Menu The Design Menu . , , . , , , design project.

. 3.13 -

Design Settings . : General () - HDL / VHDL/Verilog - VHDL Verilog ; SDF - Simulation () - VHDL Verilog, VITAL SDF, .

34

Trace/Debug (/) - ; Verilog PLI - DLL PLI; EDIF , ;

Code Coverage/Profiler ( / ) Code Coverage Profiler;

. 3.14 - Design Settings

Design Backup Revision ( ). , . . , , .. Active- HDL . , . . , Active- HDL . , Restore Revision, . , , . , , Restore Revision.

35

3.15 - Backup Revision

Create Library Design New Library Wizard. . VHDL . .

36

3.3.3.1.5 (Library Manager) , Active-HDL. : . , . . . . . . Library Manager:

. 3.16 - Library Manager

. . :

- ;

- . : - (R/W) - (R/O));

- , ; - ;

. , .37

( ) , . , . , , . , , , . :

- , . , ; - , . , , . , Unit Name. , , VHDL , , , ; - , . VHDL, , , . VHDL, . : ( VHDL Verilog), Netlist ( EDIF netlist); - , . - - , , , , . - VHDL, Verilog, EDIF; - , . VHDL, Verilog, EDIF; - , , . , .. - VHDL, , ;38

. . 3.3.3.1.6 (Console) , Active-HDL , Active-HDL. , , . Console , . ActiveHDL, , GUI () .

3.17 -

Active-HDL , , , , .. help Active-HDL . 3.3.3.1.7 Active-HDL -, . , , , , .. - , , Active-HDL. , COUNTER8.VHD TESTBENCH.VHD, TESTBENCH_ARCH . , Waveform Viewer . 39

, - , . - FUNCTIONAL.DO , : # rebuild whole project savealltabs quiet on acom counter8.vhd acom testbench.vhd asim testbench TESTBENCH_ARCH # initialize simulation wave wave CLK wave RESET wave CE wave LOAD wave DIR wave DIN wave COUNT run -all endsim quiet off

, , , .. , GUI . - , . , , , . .

40

3.3.3.2 Design Entry Tools Active-HDL, Control Tools Design Entry Tools. Design Flow Manager . (HDE, FSM, BDE) (functional simulation). , (options). . 3.18 , .

. 3.18 Design Entry Tools 1. HDE

(Hardware Description language Editor), , VHDL, Verilog SystemC; ;

2. BDE (Block Diagram Editor), ,

3. FSM (Finite State Machine), ,

. Design Entry Tools. . 3.18 . 41

. VHDL . BDE , VHDL, Generate HDL code. (.. HDL ) Code2Graphics. , , Watch/Debugging Tools. HDE, BDE FSM. 3.3.3.2.1 HDE ( HDL) HDL , HDL, , , , . HDE HDL Editor Design Flow Manager . , , . , . Active-HDL VHDL/Verilog, New Source File Wizard

. 3.19 - HDE

3.3.3.2.1.1 New Source File Wizard Active- HDL VHDL Verilog, Add New File Design Browser. , , : Block Diagram (-) State Diagram ( ) VHDL Source Code ( VHDL)42

Verilog Source Code ( Verilog) Add Existing File ( )

. 3.20 -

: Block Diagram Wizard ( -) State Diagram Wizard ( ) VHDL Source Code Wizard ( VHDL) Verilog Source Code Wizard ( Verilog)

. 3.21 - - Wizards

, . , .1. ,

; 2. , - ( BDE FSM); 3. , . ;43

4. .

. 3.22 - New Source File Wizard

3.3.3.2.1.2 HDL Editor . 3.24 HDE Tools ( ). .

. 3.23 - Undock Window

, . , . , , ( ).

44

Active-HDL (, group), , . HDL Editor , .

. 3.24 - HDE Tools

, , . , Generate Structure.. , : (. 3.25).

. 3.25 - VHDL- () 45

, entity , port , , () . architecture - . , ( ) ( Preferences Tools). ( ), Remove groups. , Create group Remove groups EH. - , . 3.25 (). : . , . , , , , , .

. 3.26 - VHDL-

Active-HDL , . HDL Editor Autoformat text EH. . 3.26 -. , (Indent) (Outdent), .

46

. 3.27- VHDL-

VHDL- . HDL Editor Comment, . , , Comment. (.3.27 -). , Uncomment (. 3.27 -). HDE Tools (. 3.24). Column selection ( ) . . 3.28 , .

. 3.28 -

Column selection , D0, D1, A, Y (. 12) . . Comment , . , .

47

3.3.3.2.1.3 Language Assistant ( ) HDL. , . : Code Auto Complete - HDL, , ;. Language templates- . Simulation templates- , , .. Synthesis templates- , , , , .. Tutorial- , , , , . User templates- , , .

3. 29 - Language Assistant

, Active-HDL, HDE. , ( ) . , Use . HD , . , Language Assistant, .

48

. 3.30 -

Language Assistant . . , . . . , , . , , , . Color Preferences ( ). HDE , , . , , , Preferences | Environment | Appearance. , , , . , HDL. HDE , , .

49

. 3.31- Preferences

HDE , Compile. HDE , . . HDE . : - , - , - HDE, - , - , , . , - , - . VHDL, IF .. THEN . , - ,50

- ( ) , . , , . ( , ), - , . ,

, : , , . , HDL, .

. 3.32 - HD, .

HDE . HDE HDL, : - ; . .

51

HDL VHDL Verilog . . CASE:

. 3.33 -

3.3.3.2.2 FSM ( ). FSM . . . , .

. 3. 34- FSM

FSM . , (FSM)52

. FSM : ; , ; , ; : ( ); ( ); . , . , , .. . 3.3.3.2.2.1 New Source File Wizard ( ) New Source File Wizard, . . , . , , Add New File, , . Add New File, . 3.3.3.2.2.2 State Machine Toolbars ( ) FSM. State Machine, : , 53

. 3.35- State Machine Toolbars

FSM . , . , . , . , Properties . , , . , , , ..

. 3.36- Machine Properties

FSM - HDL . , Generate HDL Code FSM Generate HDL code, FSM. , View HDL Code FSM. , , , . ,

54

3.3.3.2.3 BDE ( -) BDE . - VHDL . , (DRC). ( HDL, -).

. 3.37- BDE

BDE, , , -, , , .., , , . - , , ..; - - . - . . - , : , , , ..

55

- , , . - , ,. - . - Symbols Toolbox ( ), . VHDL Verilog .

. 3.38 - Symbols Toolbox

, . - , , , , . , , Push .

56

Code2Graphics ( )

. 3.39 -

, , . , , , , .. , VHDL ( Verilog) , . , Push. , : , BDE , FSM VHDL, Verilog, .., HD

57

. 3.40 -

58

3.3.3.3 Watch/Debugging Tools . VHDL Active-HDL. , . , VHDL , , . , , Active-HDL . VHDL :

Syntax Checking ( ) Compile. Code tracing ( ) VHDL - , . Value verification ( ) - , Watch List.

3.3.3.3.1 Syntax Checking ( ) Active-HDL VHDL. Compile . : , VHDL, . , , . , , .

59

. 3. 41- Compile

Compile VHDL VHDL 03 LRM. , , LRM. , 100- , , Compiler Preferences. Preferences . Debug, . Document Type VHDL . Bring active source window to top, , . , ., . . Separate view ( ) Single view ( ).

60

. 3.42 - Preferences.

Active-HDL VHDL . :

; VHDL , ;

3.3.3.3.2 Code Tracing ( ) . , . Active-HDL Waveform Editor, . . Active- HDL . VHDL --. , : Trace into - VHDL. , . Trace over - - VHDL. , , , . Trace out - VHDL, 61

. , . Trace over transition - VHDL, . , Simulation Trace. Trace over transition . 3.3.3.3.3 State Machine Code Debugging ( ) , Trace over Transition Simulation . Active-HDL ( FSM) . , FSM , , , . Trace , , . , VHDL , .

. 3. 43 - FSM

3.3.3.3.4 Breakpoints ( ) Active-HDL - Breakpoints ( ) VHDL. , (-). Watch.62

VHDL , , , ..

. 3. 44 -

Breakpoint Editor ( ) . Breakpoint Editor Code breakpoints ( ). , , , , . Breakpoint Editor . , , . , : Name () , Condition (, ), Value ( ). Condition :

Event () - , Value () - , Transaction () - , .

, Show code Signal Code breakpoint. - .

63

. 3.45 - Breakpoint Editor

3.3.3.3.5 . , . , , . , , Waveform Editor, . 3.3.3.3.5.1 List Window ( ). List Window , . . - . . . : . ( ); . ( ).

64

. 3.46 - List 3.3.3.3.5.2 Watch Window ( ). , Watch . Watch ( ) .

. 3.47- Watch. , :

names ; types of the selected objects- ; current value- ; last value - ;

, , Design Browser . VHDL.

65

3.3.3.3.5.3 Processes Window ( ) Processes Window . , .

. 3.48 - Processes

, , . , . : , , , ( line__25 ( __ 25)). , Process, : Ready ()- , .

Wait ().

,

Processes :

;66

, ; , , .

3.3.3.3.5.4 Call Stack ( ). Call Stack - , ( ) , . , , . - , , , . : . , , . , Processes, , . Call Stack .

. 3.49 - Call Stack

3.3.3.3.5.5 Data Flow ( ). Data Flow- , , , . - , , , . :

67

, . , . , - .

. 3.50- Data Flow-1

, . . . , Dataflow.

. 3.51 - Data Flow-2

. Dataflow .

68

3.3.3.4 Simulator Kernel () , . Active-HDL :1. ; 2. VHDL Testbench ( ),

Testbench Wizard;3. VHDL Testbench ( ),

;4. ; 5. , ; 6. ( Active-CAD).

, , . , , . 3.3.3.4.1 Stimulators (). Waveform Editor ( ) , Stimulators. , . : -Value stimulators ( ) . , . , , .

-Formula stimulators ( ) , , , .69

0 0, 1 10 , '0' =0 '1' 10 . Hotkey stimulators ( ) . . . , 'R' reset () , , R .

Clock stimulators ( ) , . Clock stimulators , , .. Counter stimulators ( ), . . Predefined stimulators ( ) , , . Custom stimulators ( ) , , Waveform Editor . Waveform Editor .

. 3.52 - Stimulators

70

:

; ;

; .

:o VHDL

;o ; o ,

, , ..;o

Active- HDL VHDL;

3.3.3.4.2 Waveform Editor ( ). Waveform Editor , , , . , . Test Bench Wizard ( , ), VHDL, .

71

. 3.53 -

. Waveform Editor . , , Waveform Editor . , . , . , .

.3.54 - .

3.3.3.4.3 Simulation Macros ( ). . Active-HDL , . , . , Waveform Editor ..

72

. 3.55 -

, . , . , Active-HDL. , . , , , , Test Bench . - , , , .. : , ; ; ; o ;

o .

. 3.56 - 73

3.3.3.4.4 VHDL testbench ( VHDL). VHDL testbench - VHDL, VHDL. VHDL , , , . , , , . VHDL testbench VHDL ( VHDL), (Unit Under Test ) .

. 3. 57 - Testbench

VHDL . , VHDL, , . , . Test Bench Wizard. . Test Bench Wizard , . -, , . , waveform . Test Bench . , , /.

74

. 3.58 - Test Bench Wizard

VHDL, . VHDL, , VHDL. . VHDL, Active-HDL, . Language Assistant VHDL. :

; VHDL VHDL; .

:o ( VHDL)

, . .

o VHDL,

3.3.3.4.5 .75

, , . , . , , . Active-HDL 15 . , . 3.3.3.4.5.1 . , . , . , Unit Under Test (UUT). . - Waveform Editor , Stimulators. : Value - Formula - Hotkey - Clock - Counter - Custom Predefined

76

. 3.59

:1. Override () -

FORCE. 2. Deposit () - , (, P1 P2 () FORCE. 3. Drive ( ) - , , FORCE. , std_logic.

. 3.60-

3.3.3.4.5.2 Value (). Value , (, '1', 0). , (in, out, inout, buffered), . , , . 2, 8, 10 16.

77

Stimulator Waveform Editor .

. 3.61 - Value

3.3.3.4.5.3 Formula (). Formula , -. , . : value time [,value time] [-r period] ( [ ] [-r ]) , -r . - ps (). , : ps - ns - us - ms : 0 0, 1 10, 0 20 defines a logic "1" that starts at 10 (ps) and ends at 20 ps 0 0, 1 10, 0 20 1, 10 () 20 , 1 0, 0 5 ns, -r 20 ns defines a pulse wave with period of 20 ns and 25% duty cycle 1 0, 0 5 ,-r 20 20 25%- , , Stimulator Waveform Editor "formula" . , .78

. 3.62 -

3.3.3.4.5.4 Hotkey ( ). Hotkey . , , , . , 'R' reset (), , R .

. 3.64 - Hotkey

, , . '0' '1'. , , Sequences Simulators/Hotkeys.

79

. 3.65 - Hotkey

3.3.3.4.5.5 Clock (). Clock , . Clock , , . Clock Stimulator, .

. 3.66 - Clock

3.3.3.4.5.6 Counter (). Counter, . , , . :

; ;

. , , , . Waveform Editor .

80

. 3.67 - Counter

3.3.3.4.5.7 Custom (). Custom ,, , Waveform Editor , . Custom , , , Waveform editor, Hotkey, Formula . Custom . Hotkey Formula . Stimulator CS ( ).

. 3.68 - Custom

3.3.3.4.5.8 Predefined (). Predefined / , .

81

. 3.69 - Predefined

, . .

. 3. 70 - Predefined

- . . , , . Active-HDL , Active-HDL. - , . , , , , ,82

. , , , ( , , ..) (FPGA, ASIC, ..). . , , ..

. 3.71- The Waveform Editor

3.3.3.4.6 VHDL Testbench ( VHDL). VHDL VHDL, , VHDL. , VHDL Testbench - , Unit Under Test (UUT)-( ) , . VHDL :1. Stimulus Generator ( ) -

Test Vector ( ; ;

)

UUT

2. Unit Under Test (UUT)-( )

3. Verifier ()-

. .

3.72- . 83

, , . . 3.3.3.4.6.1 Off-line Configuration ( ) , ( , ) . . UUT . VHDL . , ( ), ( , ).

3. 73-Off-line Configuration .

3.3.3.4.6.2 On-line Configuration ( ). . . , . , 84

, , .

. 3.74 On-line Configuration

3.3.3.4.6.3 Adaptive Configuration ( ). - - , VHDL. , , . UUT . : , UART PCI.

. 3.74 -Adaptive Configuration

3.3.3.4.7 VHDL Test Bench Wizard ( VHDL). , Test Bench Wizard, VHDL. , . . , Bench Wizard , .85

Test Bench Wizard, Generate Test Bench Tools. Entity , Next.

.3.74- Test Bench Wizard -1

, : waveform . Next.

.3.75- Test Bench Wizard -2

, ... , .

86

.3.76- Test Bench Wizard -3

, . - . - , - , , . Finish, .

.3.77- Test Bench Wizard -4

Test Bench Wizard , , .87

, . , , , . - , . , . . Active-HDL (), , . Active-HDL , . . Active-HDL , , . , . . , VHDL, . .

88

1. Active-HDL 7.1. http://www.kit-e.ru/articles/circuit 2. Active-HDL http://www.aldec.com/

3. .., .. .-.: ., 1990. -335 . 4. .. .-.: ., 1987.-182 . 5. .. : . . -.: - , 2000.-359 .6. .., www.compitech.ru

7. .., .. ..: ., 2003.-825 . 8. . . . -.: ., 1985.-424 . 9. .. : . . -.: - , 2002.-389 . 10.. . .-.: , 1992.-623 .11. ., . 44

: . . -.: , 1990.-288

89

1 Active HDL 7.1 : Active HDL 7.1. . ( , ). HDE BDE. . 1. Active - HDL .1.1.

. 1.1 - Active - HDL

1.1 Active -HDL: , , . , .

1.1 - , , . - 90

1 . , : , , . :

.1.2

"S" (), "R"(), . "S", "R" X , "Q" . "Q". "C" (Clok- ), . . RS- S R Q=1 S=1 R=0 Q=0 S=0 R=1 S=R=0 S=R=1 - ( ) . . Q

. 1.3 RS-

1.2 . , , . , , , . RS-. Waveform Editor, New Waveform Standard. Waveform91

, . , . Waveform Editor , . , . Add Signals. . : D0, D1, A, Y, F1, F2, F3. Shift Ctrl , , D0, D1, A Y. Add Waveform Editor (. 2) Add Signals ( Close).

. 1.4 ,

Stimulators Stimulators. . D0, D1 A . . . Clock. Stimulators (. 3). Signals D0, Type Clock (Frequency) 10 . Apply , , D1.

. 1.5 D0, D1 A

92

5 . , A 1 . , Stimulators ( Close). ( Initialize Simulation Simulation). Value (. 4). Y U (Uninitialized ). mux2_schema.bde, , .

. 1.5

(. 5). Run For Simulation. F5. , , , .

. 1.6

100 ns, . . . , . . , Run Until Simulation. 93

(. 5). (. 6), , 1.2us (1,2 ).

. 1.8

Run (Alt+F5). , (transactions) . (Clock), , , TIME'HIGH. , Break , Restart . , Run . , , (Console). : run 1200ns Enter. (. 7).

. 1.7 mux2_schema

, A , D0. A '1' ( 500 ns), D1. () . . Save. Waveform Editor 1.awf. 94

, mux2_schema.awf. Active-HDL 7.1 , . ( Restart) New List ( ). list1, D0, D1, A Y ( Add Signals ). , (. 8).

. 1.9. ()

(, , ), , , .

95

: 1. , Active - HDL . 2. (New Design Wisard). 6. (New Design Wisard) . 7. Design Flow Manager. . 8. HDE (Hardware Description Editor- ) BDE (Block Diagram Editor- ). 9. RS HDE. VHDL , RS -. : 2 R S 2 U INV_U STD_LOGIC. 10. . 11. . . 13. RS BDE, . 14. ( ) ( VHDL). Generate HDL Code, Diagram. 15. : RS , HDE VHDL-. 16. . 96

17. . . 18. .

1. 2. 3. 4. 5. 6.7.

Active - HDL. (New Design Wisard). Active - HDL ? (Design Browser)? ? VHDL? ActiveHDL?

1. ; 2. Active - HDL ; 3. ; 4. 2- , , HDE BDE; 5. 2- , , HDE BDE ; 6. .

97

2 :

: Active-HDL, . : , . time. . VHDL : Y( )