VHDL programmering H2



Similar documents
Digital Design with VHDL

Lenguaje VHDL. Diseño de sistemas digitales secuenciales

12. A B C A B C A B C 1 A B C A B C A B C JK-FF NETr

An Example VHDL Application for the TM-4

if-then else : 2-1 mux mux: process (A, B, Select) begin if (select= 1 ) then Z <= A; else Z <= B; end if; end process;

LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Using Xilinx ISE for VHDL Based Design

ECE 3401 Lecture 7. Concurrent Statements & Sequential Statements (Process)

VGA video signal generation

Hardware Implementation of the Stone Metamorphic Cipher

(1) D Flip-Flop with Asynchronous Reset. (2) 4:1 Multiplexor. CS/EE120A VHDL Lab Programming Reference

Oversættelse af symbolsk maskinsprog. Sammenkædning og indlæsning af maskinsprog

Sprites in Block ROM

Join af tabeller med SAS skal det være hurtigt?

Lab 7: VHDL 16-Bit Shifter

In this example the length of the vector is determined by D length and used for the index variable.

Implementation of Web-Server Using Altera DE2-70 FPGA Development Kit

Business development. Linnea Jacobsen. 1. semester 2014

! " # # $ '"() * #! +, # / $0123$

VHDL GUIDELINES FOR SYNTHESIS

Digital Systems Design. VGA Video Display Generation

SAS programmer til Proc Means indlæg af Per Andersen / Capgemini Danmark A/S

How To Boot A Cisco Ip Phone From A Cnet Vlan To A Vlan On A Cpower Box On A Ip Phone On A Network With A Network Vlan (Cisco) On A Powerline (Ip Phone) On An

Printed Circuit Board Design with HDL Designer

Asynchronous & Synchronous Reset Design Techniques - Part Deux

VHDL Reference Manual

Digital Design and Synthesis INTRODUCTION

VHDL Test Bench Tutorial

CPE 462 VHDL: Simulation and Synthesis

Oracle Application Express

CNC FOR EDM MACHINE TOOL HARDWARE STRUCTURE. Ioan Lemeni

Opdatering af metadata via SAS -programmer

Floating point package user s guide By David Bishop (dbishop@vhdl.org)

Quartus II Introduction for VHDL Users

How To Understand Software Quality

Claus B. Jensen IT Auditor, CISA, CIA

1) Testing of general knowledge 25%. Each right question counts 1. Each wrong counts 0.5. Empty

Procesintegration og -automatisering. Michael Borges, Partner

2 halvleg. 1 halvleg. Opvarmning. 2 halvleg. 3 halvleg. Advanced & Powerful. Basic PC-based Automation. Diagnose. Online Tools & Add-on s

Digital Design with Synthesizable VHDL

Introduction to Programmable Logic Devices. John Coughlan RAL Technology Department Detector & Electronics Division

Design of Remote Laboratory dedicated to E2LP board for e-learning courses.

From VHDL to FPGA

Hub North Netværksarrangement d. 14. Juni 2011

SPDE. Lagring af større datamængder. make connections share ideas be inspired. Henrik Dorf Chefkonsulent SAS Institute A/S

Informationsteknologi Serviceledelse Del 4: Procesreferencemodel

OIO Dekstop applikation

* --- Alle labels kan nu bestemmes i PROC PRINT ;

Student evaluation form

Information og dokumentation Ledelsessystem for dokumentstyring Krav

How To Price Power In Norsk

Software- og systemudvikling Softwaretest Del 1: Begreber og definitioner

SRX. SRX Firewalls. Rasmus Elmholt V1.0

Questionnaire #1: The Patient (Spørgeskema, må gerne besvares på dansk)

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

How To Write An International Safety Standard

Management. Support HR

National strategi for Datamanagement Input fra Bevaring, Formidling og Genbrug. Birte Christensen-Dalsgaard Det Kongelige Bibliotek

THE ROTARY FOUNDATION. Det hele begyndte med at Arch Klump fik en idé i 1917!

Sistemas Digitais I LESI - 2º ano

<Matthías saga digitalis 6.0/>

NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY DO NOT COPY

Step : Create Dependency Graph for Data Path Step b: 8-way Addition? So, the data operations are: 8 multiplications one 8-way addition Balanced binary

SPECIFIKATIONER KEYBOARD LYDPROCESSOR. 88 tangenter (PHA-4 Concert Keyboard: med Escapement og Ebony/Ivory Feel) Klaviatur

Informationsteknologi Personlig identifikation ISO-overensstemmende kørekort Del 4: Prøvningsmetoder

Agil Business Process Management - i Finans

Sundhedsinformatik Krav til den elektroniske patientjournals arkitektur

Lecture 8: Synchronous Digital Systems

FaSMEd meeting, Maria I.M. Febri

Rotary Encoder Interface for Spartan-3E Starter Kit

Red de Revistas Científicas de América Latina y el Caribe, España y Portugal. Universidad Autónoma del Estado de México

Discrete event modeling: VHDL

Informationsteknologi Storage management Del 1: Oversigt

Evaluation and Assessment of Key Competences in Denmark

CAMP LOGOS administrated by Boligselskabet Sct. Jørgen (housing agency)

IBM Quality Management Strategy. En proces. Vi laver kun 3 ting. IT Operational Service. Solution Deployment. Solution Development.

Informationsteknologi Små computersystemers. Del 251: USB-fæstnet SCSI (UAS)

Sundhedsinformatik Kapacitetsbaseret roadmap for e-sundhedsarkitektur Del 1: Oversigt over nationale e-sundhedsinitiativer

IZ15-IZ16. Montagevejledning Installation manual 11/2011

Azfar Bassir. Summary. Experience. Developer at SHFT

After opening the Programs> Xilinx ISE 8.1i > Project Navigator, you will come to this screen as start-up.

Softwareudvikling Kvalitetskrav til og evaluering af softwareprodukter (SQuaRE) Fælles industriformat (CIF) til brugbare testrapporter

Rubber condoms Guidance on the use of ISO 4074 in the quality management of natural rubber latex condoms

Digital Systems. Syllabus 8/18/2010 1

! Crowdsourcing!the!Library!

Combinational-Circuit Building Blocks

Ergonomi Fysisk miljø Anvendelse af internationale standarder for personer med særlige behov

Casestudier, der understøtter IEC Bestemmelse af RF-felter og SAR-værdier i nærheden af radiokommunikationsbasestationer

CSE140 Homework #7 - Solution

Formgivning af ramme-og buekonstruktioner. Kursusholder Poul Henning Kirkegaard, institut 5, Aalborg Universitet

Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course

Decimal Number (base 10) Binary Number (base 2)

Statistiske metoder i procesledelse Kapabilitet og performance Del 3: Analyse af maskinperformance for måleværdier på (diskrete) emner

Transcription:

VHDL programmering H2

VHDL (Very high speed Integrated circuits) Hardware Description Language IEEE standard 1076-1993 Den benytter vi!! Hvornår blev den frigivet som standard første gang?? Ca. 1980!! 12-11-22 Lkaa House Of technology 2

VHDL struktur VHDL Entity Interface Body (Arkitektur) Sekventiel Kombination Processer Underprogrammer 12-11-22 Lkaa House Of technology 3

VHDL struktur ENTITY (enhed) Skal være det samme som projekt-navnet!! Case sensitiv!!! VHDL kode skal starte med biblioteker og derefter ENTITY efterfulgt af (Projektnavnet) 12-11-22 Lkaa House Of technology 4

VHDL kode -- Quartus II VHDL Template -- Configurable gate architecture library ieee;use ieee.std_logic_1164.all; entity VHDL1 is port Mode ( i1 : in std_logic; i2 : in std_logic; o1 : out std_logic ); end VHDL1; TEXT Biblioteker Start på deklaration ENTITY Definition på porte ENTITY slut!! 12-11-22 Lkaa House Of technology 5

Porte MODE IN: input signal OUT: output signal BUFFER: output der kan læses i VHDL koden INOUT: både og 12-11-22 Lkaa House Of technology 6

Type TYPE bit: 0 og 1 værdier Bit_vector: Kan eks. Være Bit_vector(0 to 7) Std_logic, std_ulogic, std_logic_vector, std_logic_ulogic: Kan indtage 9 forskellige værdier! Brug altid std_logic eller std_logic_vector!!!! Boolean: false eller true Integer: hele tal Real: med komma Character: Karakterer ikke tal værdier Time: tid 12-11-22 Lkaa House Of technology 7

VHDL struktur VHDL Entity Interface Body (Arkitektur) Sekventiel Kombination Processer Underprogrammer 12-11-22 Lkaa House Of technology 8

Arkitektur architecture and_gate of VHDL1 is begin o1 <= i1 AND i2; end and_gate; Navn Logisk udtryk! Entity 12-11-22 Lkaa House Of technology 9

Arkitektur architecture or_gate of VHDL1 is begin o1 <= i1 OR i2; end or_gate; 12-11-22 Lkaa House Of technology 10

Arkitektur architecture xor_gate of VHDL1 is begin o1 <= i1 XOR i2; end xor_gate; 12-11-22 Lkaa House Of technology 11

Arkitektur Entity VHDL1 is port: (A,B:in std-logic; Z: out std_logic); End; architecture Xnor of VHDL1 is signal X,Y: std_logic; begin X <= A AND B; Y<= (not A) and (not B); Z<= X or Y end Xnor; Interne signaler!!! 12-11-22 Lkaa House Of technology 12

VHDL indtastning Start med at oprette en schmatic Entity!!! 12-11-22 Lkaa House Of technology 14

VHDL indtastning Tryk : NEW VHDL File 12-11-22 Lkaa House Of technology 15

VHDL indtastning Template 12-11-22 Lkaa House Of technology 16

VHDL indtastning 12-11-22 Lkaa House Of technology 17

VHDL ind i Schematic 12-11-22 Lkaa House Of technology 18

Opgave Opgave 1 laves med VHDL! Lav 7 seg. med VHDL, et element for hvert segment. Lave 7 segment med Logic Friday!! Link til www adr på Mars! 12-11-22 Lkaa House Of technology 19

entity compute is Compute kode Port ( F : in std_logic_vector(2 downto 0); A_In, B_In : in std_logic; A_Out, B_Out : out std_logic; F_A_B : out std_logic); end entity compute; F afgøre hvilken operator Der skal benyttes Data in som skal manipuleres! Resultat af A_in og B_in 12-11-22 Lkaa House Of technology 20

Compute kode architecture Behavioral of compute is begin with F select F_A_B <= A_In and B_In when "000", A_Out <= A_In; B_Out <= B_In; A_In or B_In when "001", A_In xor B_In when "010", '1' when "011", end architecture Behavioral; A_In nand B_In when "100", A_In nor B_In when "101", A_In xnor B_In when "110", '0' when others; -- must be included Når F = 000 så bliver A_in og B_in And et sammen 12-11-22 Lkaa House Of technology 21

Opgave VHDL Compute kode analyseres? Hvordan virker den? 12-11-22 Lkaa House Of technology 22

Tæller op og ned library IEEE; use IEEE.std_logic_1164.all; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity up_down_counter is port (clk, enable, up_down : in std_logic; synch_reset: in std_logic; Q: out std_logic_vector(7 downto 0)); end entity up_down_counter; 12-11-22 Lkaa House Of technology 24

Architecture counter architecture counter_behavior of up_down_counter is signal count:std_logic_vector(7 downto 0); begin process(clk, synch_reset) -- sensitivity list begin if(synch_reset='1') then count <= "00000000"; end if; Q<=count; end process; end architecture counter_behavior; elsif (clk'event and clk='1') then if (enable='1') then end if; if (up_down='1') then count<=count+"0000001"; end if; else count<=count-"0000001"; 12-11-22 Lkaa House Of technology 25

Opgave Analysere tælleren, hvordan virker den? 12-11-22 Lkaa House Of technology 26