VHDL Timer Exercise

Similar documents
Modelsim中文教程

epub83-1

untitled

untitled

untitled

untitled

图 片 展 示 : 资 源 简 介 : FPGA Altera CycloneII EP2C5T144C8 (4608 个 LE) 2 路 有 源 晶 振 (50M,25M) AS & JTAG 标 准 接 口 VGA 接 口 UART 接 口 蜂 鸣 器 8bit 并 行 DAC 8 路 按 键

AL-M200 Series

圖 1. 手 工 搭 棚 [ 與 PCB 印 刷 電 路 板 PCB 除 了 電 路 之 外, 也 放 置 各 種 電 子 零 件 如 圖 2 所 示, 電 子 零 件 與 PCB 的 接 合 方 式 有 二 : 插 件 式 (Pin Through Hole, PT

PROFIBUS3.doc

IBM Rational ClearQuest Client for Eclipse 1/ IBM Rational ClearQuest Client for Ecl

Chapter 24 DC Battery Sizing

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer)

KT-SOPCx开发套件简明教程

AL-MX200 Series

Cadence Poqi

IP505SM_manual_cn.doc

(Microsoft Word - \245\274\244\300\246\250\301Z\260\252\247C13.doc)

D-Type entity D_FF is D :in std_logic; CLK :in std_logic; Q :out std_logic); end D_FF; architecture a of D_FF is process(clk,d) if CLK'EVENT and CLK =

ebook140-9

DR2010.doc

混訊設計流程_04.PDF

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

Microsoft PowerPoint - STU_EC_Ch08.ppt

PTS7_Manual.PDF

untitled

j_xilinx-training-courses_2012.pdf

Cadence SPB 15.2 VOICE Cadence SPB 15.2 PC Cadence 3 (1) CD1 1of 2 (2) CD2 2of 2 (3) CD3 Concept HDL 1of 1

SDS 1.3

Microsoft Word - SupplyIT manual 3_cn_david.doc

Text 文字输入功能 , 使用者可自行定义文字 高度, 旋转角度 , 行距 , 字间距离 和 倾斜角度。

Progress Report of BESIII Slow Control Software Development

目 录

untitled

Basic System Administration

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

圖形10.cdr

Microsoft Word - LD5515_5V1.5A-DB-01 Demo Board Manual

untitled

ARM JTAG实时仿真器安装使用指南

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc

ebook111-4

RunPC2_.doc

Microsoft PowerPoint - ch6 [相容模式]

基于UML建模的管理管理信息系统项目案例导航——VB篇

2/80 2

邏輯分析儀的概念與原理-展示版

Microsoft Word - Front cover_white.doc

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

Eclipse C C++, or

RUN_PC連載_10_.doc

2 黑 色 皇 后 兵 向 前 移 動 兩 格 3 白 色 主 教 兵 4 黑 色 皇 后 對 角 移 動 到 對 吃 掉 白 色 國 王 的 位 置 在 這 個 章 節 中 你 會 學 到 1 打 開 設 定 關 鍵 (Set Key) 模 式 2 使 用 在 檢 視 軌 跡 中 的 可 設 定

Oracle Solaris Studio makefile C C++ Fortran IDE Solaris Linux C/C++/Fortran IDE "Project Properties" IDE makefile 1.

mvc

Microsoft Word - 3D手册2.doc

自动化接口

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

untitled

第一章

<4D F736F F F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074>

Front 2 Polar F11 ( ) : Polar F11 Polar F11 Polar F11 Polar (Keeps U Fit - Own Workout Program) Polar Polar F11 Polar F11 Polar F11 Polar (

ICD ICD ICD ICD ICD

D C 93 2

2

WinMDI 28

Microsoft Word - template.doc

Edge-Triggered Rising Edge-Triggered ( Falling Edge-Triggered ( Unit 11 Latches and Flip-Flops 3 Timing for D Flip-Flop (Falling-Edge Trigger) Unit 11

epub 66-4

coverage2.ppt

UDC 厦门大学博硕士论文摘要库

gate level ADMS Power Noise Timing RC RCC Signal Integrity RC RCC Calibre xrc Eldo Hspice spectre DSPF SPEF Calibre xrc reduce thresholds tolerances C

Abstract / / B-ISDN ATM Crossbar Batcher banyan N DPA Modelsim Verilog Synopsys Design Analyzer Modelsim FPGA ISE FPGA ATM ii

ebook140-8

1 SQL Server 2005 SQL Server Microsoft Windows Server 2003NTFS NTFS SQL Server 2000 Randy Dyess DBA SQL Server SQL Server DBA SQL Server SQL Se

Microsoft Word - A doc

PowerPoint Presentation

EK-STM32F

NEXT SDT2.51 C:\ARM251 SDT2.51 ARM SDT 2.51 ARM PROJECT MANAGER SDT 2

Microsoft Word - Datastream5.1_使用說明201110

晶体结构立体模型建构软件-Diamond的使用

Designing a Custom AXI Peripheral

untitled

B 6 A A N A S A +V B B B +V 2

On/Off/ FlexiClip HFC FlexiClip

9 什 么 是 竞 争 与 冒 险 现 象? 怎 样 判 断? 如 何 消 除?( 汉 王 笔 试 ) 在 组 合 逻 辑 中, 由 于 门 的 输 入 信 号 通 路 中 经 过 了 不 同 的 延 时, 导 致 到 达 该 门 的 时 间 不 一 致 叫 竞 争 产 生 毛 刺 叫 冒 险 如

P4V88+_BIOS_CN.p65

enews174_2

LSC操作说明

V6800/V6600 3D

Bus Hound 5

untitled

HLA-B27軟體

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

untitled

PFO_300a_GSG_ENG.book

Epson

PADS Router PADS Router (KGS Technology Ltd.) Mentor ( Innoveda-PADS) PADS PowerPCB APLAC DPS CAD KGS 1989 PADS CAE/CAD/CAM EDA PCB PCB PCB PCB PCB PA

RAID RAID 0 RAID 1 RAID 5 RAID * ( -1)* ( /2)* No Yes Yes Yes A. B. BIOS SATA C. RAID BIOS RAID ( ) D. SATA RAID/AHCI ( ) SATA M.2 SSD ( )

Business Objects 5.1 Windows BusinessObjects 1

Transcription:

FPGA Advantage HDS2003.2 Mentor Graphics FPGA ModelSim Precision FPGA ( ) View All 1. Project HDL Designer Project Project Library project Project <project_name>.hdp project example project example.hdp Design Manager Project New Project Project 1

New Project, Creating a New Project 2

Project Next Project Summary Next Project Content Create design files, Finish 3

Project,Tutorial C:\tmp\Myproject\TUTORIAL\hds HDL C:\tmp\Myproject\TUTORIAL\hdl 2 Options Main General VHDL OK 4

Verilog Verilog Graphical Design Tutorial Chapter 2 Verilog Timer Exercise ( Design Manager Help HDL Designer Series Tutorials) 5

3 TOP-DOWN TUTORIAL Designer Manager Graphical View > Block Diagram 6

4 Blocks (add block) <library> <block> I1 I0 5 7

Block Block Embedded Block Block Embedded Block 6 I0 I1 eb1 8

std_logic std_logic_vector(15 downto 0) Object Properties 7 Bundle bundle I0 bundle0 Bundle global connector global connector 9

8 TUTORIAL Design Unit Timer OK Designer Manager Vew > SubWindows > Design Hierarchy Design Hierarchy 10

Design Units Timer Design Hierarchy 11

VHDL 9 Timer Object Properties Diagram > Singals > Scope for Changes Entire Net in diagram Object Properties Apply change to control Control 12

Declaration Visibility Singal Visibility 13

10 HDL OR1 Open New View Text OK HDL OR1 OR1 14

alarm <= hold OR beep; VHDL OK Apply Change Shape OR OR 15

Embedded Block Mentor Graphics 11 Control Control Open As > New View State Diagram Next Finish Control 16

12 s0 s1 s2 s3 s4 Designer Manager 17

Control Block 13 Object Properties s0 18

Name Actions VHDL 19

IF Condition IF Use Priority 20

ZEROS Declaration Diagram > State Machine Properties Architecture Declaration Tab Constant ZEROS : std_logic_vector := "0000000000"; OK 14 count count State Type Hierarchical State 21

22

15 Diagram > State Machine Properties Signals Status ( Status Help smdesign.pdf) 23

Generation Help Panel 24

16 HDL Tasks Generate Warning Error Log Window Generate HDL View > Mode >HDL Files, HDL HDL 25

17 BCDCounter HDL Designer Import Mentor Counter BCDCounter BCDCounter Designer Manager HDL Import HDL Import Wizard Next 26

Directory Browser HDS examples\tutorial_ref\import\timer Timer_BCDCounter.vhd Add Timer_BCDCounter.vhd Files to Convert Next 27

TUTORIAL Next Finish Log Designer Manager TUTORIAL Top Marker Toggle Top Marker 18 Timer Counter Open As > New View, Block Diagram, Next 28

Finish Add Component TUTORIAL BCDCounter 29

BCDCounter 30

I0 I1 BCDCounter Add Signal Stubs OK HDL Designer Stub Diagram >Autoroute > AutoRoute Option clear load dat_in Autoroute>AutoRoute 31

delay BCDCounter Generics 10 ns 5 ns 5 ns 19 ModuleWare ModuleWare Mentor HDL ModuleWare Window ModuleWare GROUND 32

Constants Ground carry_in carry_in Ground Dout 4 Set port size 4 33

gnd Object Properties 34

User Declarations gnd VHDL VHDL 35

ModuleWare Logic N Input NOR zero2 zero zero2 HDL 36

20 Counter DtoB True Table Embedded Block View Embedded Block A B C 1 2 3 37

Table Designer Hierarchy Timer Expand All Designer Manager Timer generate HDL files Log HDL Design Manager View > Mode > HDL Files, 38

HDL HDL HDL VHDL HDL 21 Test bench Designer Manager Timer File New Create 39

Test Bench Designer Manager Timer_tb VHDL Test Bench Component Timer_tester Timer_tester Import 40

Designer Manager HDL Import HDL Import Wizard BCDCounter Timer_tester.vhd TUTORIAL Designer Manager Timer_tester Timer_tb Timer_tester Add Component TUTORIAL Timer_tester Timer Generate Through Components HDL 41

22 DownStream ModelSim Precision Designer Manager Options > Main Main Setting User Variables 23 Designer Manager View > SubWindows > Task and Templetes Tasks Design Explorer Timer_tb Tasks ModelSim Complier Design Explorer Timer_tb ModelSim 42

timer_tb ModelSim Modelsim view d w DataFlow 24 Control 43

Diagram Instrument HDL for animation 44

ModelSim # hds_anim_prefs 10000 0 0 # hds_anim_enable /Timer_tb/I0/I0/ TRUE 0 - current_state # Now sending details of /timer_tb/i0/i0 to HDS for animation run -all # ** Note: Count suspended correctly # Time: 8450 ns Iteration: 1 Instance: /timer_tb/i1 # ** Note: Alarm asserted correctly # Time: 11355 ns Iteration: 0 Instance: /timer_tb/i1 # ** Failure: Timer test completed # Time: 12150 ns Iteration: 1 Instance: /timer_tb/i1 # Break at D:/mentor/FPGAdv53/Hds/examples/tutorial_ref/TIMER_Vhdl/hdl/timer_tester_test.vhd line 139 45

25 Designer Manager Timer FPGA Add IO Pads OK Precision Project Output Files RTL Area Report Timming Report 46

xilinx ISE Altera Quartus ISE5.2 QuartusII ISE5.2 ngd2vhdl: Processing design... ngd2vhdl: Preping physical only global signals... ngd2vhdl: Preping design's networks... ngd2vhdl: Preping design's macros... WARNING:NetListWriters:306 - Signal bus I0/current_state( 8 downto 0 ) on block Timer is not reconstructed, because there are some missing bus signals. WARNING:NetListWriters:306 - Signal bus I0/next_state( 7 downto 0 ) on block Timer is not reconstructed, because there are some missing bus signals. ngd2vhdl: Preping design completed. ngd2vhdl: Writing VHDL netlist Timer_out.vhd... 47

ngd2vhdl: Setting external property filter file to d:/xilinx/data/xdm2vhdl.prp. ngd2vhdl: Writing file Timer_out.vhd completed. ngd2vhdl: Writing VHDL SDF file Timer_out.sdf... ngd2vhdl: Writing file Timer_out.sdf completed. Info: place_and_route returned successfully Timer_out.sdf Timer_out.vhd Error, Tools > Options 26 48

Xilinx Simprim EDA Xilinx ISE 5.1i ISE compxlib compxlib -s mti_se -f all -l vhdl -o c:\libs ModelSim vhdl Xilinx Synthesis and Simulation Design Guide ALTERA MAXPLUSII alt_vtl maxplus2/vhdl87/vital maxplus2/vhdl93/vital QuartusII alt_vtl lpm 220model.vhd 220pack.vhd quartus/eda/sim_lib/ MODELSIM lpm vlib lpm vmap lpm < /myalteralib/lpm> lpm vcom work lpm vcom work lpm < /sim_lib/220pack.vhd> < /sim_lib/220model.vhd> FPGA IEEE 49

Modelsim VHDL Modelsim modelsim.ini [Library] std = $MODEL_TECH/../std ieee = $MODEL_TECH/../ieee verilog = $MODEL_TECH/../verilog std_developerskit = $MODEL_TECH/../std_developerskit synopsys = $MODEL_TECH/../synopsys modelsim_lib = $MODEL_TECH/../modelsim_lib lpm = < /myalteralib/lpm> lpm Modelsim library apex20k Modelsim apex20k vlib apex20k vmap apex20k < /myalteralib/apex20k> vcom work apex20k < /eda/sim_lib/apex20k_atoms.vhd> vcom work apex20k < /eda/sim_lib/apex20k_componenets.vhd> modelsim.ini Using Altera MegaWizard Plug-In Manager with FPGA Advantage.pdf Xilinx Simprim Simprim $Xilinx\vhdl\src\simprims 27 Designer Manager Timer Import Gate Level 50

HDL Netlist SDF Timer_out.vhd Timer_out.sdf OK Designer Manager Timer Views VHDL RTL EDIF VHDL Timer_out.vhd Timer View Timer_tb Modelsim add w * run all 51

high low FPGA 010 68058081/82/83, 010 68058085 52