AHDL: Introduction. Hardware Description Languages Altera hardware description language (AHDL) Very high speed integrated circuit (VHSIC) hardware description.

Slides:



Advertisements
Similar presentations
3-13 Alternate Logic-Gate Representations
Advertisements

Combinational Logic with Verilog Materials taken from: Digital Design and Computer Architecture by David and Sarah Harris & The Essentials of Computer.
SYEN 3330 Digital SystemsJung H. Kim Chapter SYEN 3330 Digital Systems Chapters 4 – Part3: Verilog – Part 1.
Flip-Flops, Registers, Counters, and a Simple Processor
Sequential Logic Latches and Flip-Flops. Sequential Logic Circuits The output of sequential logic circuits depends on the past history of the state of.
Nonlinear & Neural Networks LAB. CHAPTER 11 LATCHES AND FLIP-FLOPS 11.1Introduction 11.2Set-Reset Latch 11.3Gated D Latch 11.4Edge-Triggered D Flip-Flop.
Chapter 10 Flip-Flops and Registers Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. William Kleitz.
Introduction to Chapter 3 Now that we understand the concept of binary numbers, we will study ways of describing how systems using binary logic levels.
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ECE 353 Computer Systems Lab I Verilog Hardware Description Language.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
VHDL. What is VHDL? VHDL: VHSIC Hardware Description Language  VHSIC: Very High Speed Integrated Circuit 7/2/ R.H.Khade.
Counters.
Chapter 1_4 Part II Counters
BY: TRAVIS HOOVER 2/22/2011 CS 147 DR. LEE JK flip-flops.
Electronics Technology
Introduction to Digital Logic Design Appendix A of CO&A Dr. Farag
Introduction to Sequential Logic Design Flip-flops.
Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung University Computer Aided Circuit Design.
ASIC 120: Digital Systems and Standard-Cell ASIC Design Tutorial 1: Introduction to Digital Circuits October 11, 2005.
ECE 2372 Modern Digital System Design
System Arch 2008 (Fire Tom Wada) /10/9 Field Programmable Gate Array.
Chap 4. Sequential Circuits
Flip-Flops and Registers
VHDL Introduction. V- VHSIC Very High Speed Integrated Circuit H- Hardware D- Description L- Language.
Unit 11 Latches and Flip-Flops Fundamentals of Logic Design By Roth and Kinney.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung University.
Introduction to Chapter 3  Now that we understand the concept of binary numbers, we will study ways of describing how systems using binary logic levels.
ECA1212 Introduction to Electrical & Electronics Engineering Chapter 9: Digital Electronics – Sequential Logic by Muhazam Mustapha, November 2011.
Sequential Design Basics. Lecture 2 topics  A review of devices that hold state A review of Latches A review of Flip-Flops 8/22/2012 – ECE 3561 Lect.
Copyright © 1997 Altera Corporation 6/5/2016 P.1 AHDL Training Class Danny Mok Altera HK FAE
Introduction to VHDL Spring EENG 2920 Digital Systems Design Introduction VHDL – VHSIC (Very high speed integrated circuit) Hardware Description.
1 COMP541 Sequential Circuits Montek Singh Feb 1, 2012.
Copyright © 1997 Altera Corporation 11/20/2015 P.1 Beginner VHDL Training Class Danny Mok Altera HK FAE
Introduction to Sequential Logic
Hardware languages "Programming"-language for modelling of (digital) hardware 1 Two main languages: VHDL (Very High Speed Integrated Circuit Hardware Description.
CEC 220 Digital Circuit Design Introduction to VHDL Wed, February 25 CEC 220 Digital Circuit Design Slide 1 of 19.
Chapter 10 Flip-Flops and Registers 1. Objectives You should be able to: Explain the internal circuit operation of S-R and gated S-R flip-flops. Explain.
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Introduction to ASIC flow and Verilog HDL
Digital Electronics.
Counters.
5 Chapter Synchronous Sequential Circuits 1. Logic Circuits- Review 2 Logic Circuits Sequential Circuits Combinational Circuits Consists of logic gates.
Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung University.
Verilog Intro: Part 1. Hardware Description Languages A Hardware Description Language (HDL) is a language used to describe a digital system, for example,
CEC 220 Digital Circuit Design Introduction to VHDL Wed, Oct 14 CEC 220 Digital Circuit Design Slide 1 of 19.
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
1 The Registers File l Modern digital systems are based on logic with state variables, which are changed according to a clock. – The system consists of.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
Digital Design: With an Introduction to the Verilog HDL, 5e M. Morris Mano Michael D. Ciletti Copyright ©2013 by Pearson Education, Inc. All rights reserved.
Hardware Description Languages: Verilog
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
FIGURE 5.1 Block diagram of sequential circuit
Hardware Description Languages: Verilog
ECE Digital logic Lecture 16: Synchronous Sequential Logic
ASIC 120: Digital Systems and Standard-Cell ASIC Design
Field Programmable Gate Array
Field Programmable Gate Array
Field Programmable Gate Array
CS341 Digital Logic and Computer Organization F2003
HDL Hardware Description Language
FLIP-FLOPS.
Flip-Flops.
Flip Flops Unit-4.
Chap. 3 Describing Logic Circuits
CMPE212 Discussion 11/21/2014 Patrick Sykes
Presentation transcript:

AHDL: Introduction

Hardware Description Languages Altera hardware description language (AHDL) Very high speed integrated circuit (VHSIC) hardware description language (VHDL) Verilog HDL Tool: MAX+PLUS II supports both AHDL and VHDL.

HDL Format and Syntax The basic format of any hardware circuit description involves two vital elements: The definition of what goes in and what comes out of it. (I/O specs) The definition of how outputs respond to the inputs. (operation) Documentation I/O Definitions Functional Description

AHDL The textbook includes information on both AHDL and VHDL. We will be discussing only the AHDL format and syntax for the sake of simplicity.

Simple Boolean Expression SUBDESIGN and_gate ( a,b : INPUT; y : OUTPUT; ) BEGIN y = a & b; END; Keywords: SUBDESIGN: gives a name to the circuit block. (Not case-sensitive) INPUT OUTPUT BEGIN END

Basic Boolean Operators & AND # OR !NOT $XOR

Intermediate Variables in AHDL % (Figure 3-49) % SUBDESIGN fig3_50 ( a, b, c : INPUT;-- define input to block y : OUTPUT;--define block output ) VARIABLE m : NODE;--name an intermediate signal BEGIN m = a & b;--generate buried product term y = m # c;--generate sum on output END; Keyword: VARIABLE Comments: Between two %’s After two dashes (--)

Representing Data in AHDL Numbers Binary: B”101” Hexadecimal H”101” Decimal 101 Bit Array/Vectors p1 [7..0] :INPUT; --define an 8-bit input port Assignment: VARIABLE temp [7..0] : NODE; BEGIN temp[]=p1[]; END

Define a Truth Table in AHDL SUBDESIGN FIG4_50 ( a,b,c :INPUT;--define inputs to block y :OUTPUT;--define block output ) BEGIN TABLE (a,b,c)=> y;--column headings (0,0,0)=> 0; (0,0,1)=> 0; (0,1,0)=> 0; (0,1,1)=> 1; (1,0,0)=> 0; (1,0,1)=> 1; (1,1,0)=> 1; (1,1,1)=> 1; END TABLE; END; Keywords: TABLE END TABLE

Decision Control: IF/THEN/ELSE SUBDESIGN FIG4_54 ( digtal_value[3..0] :INPUT;-- define inputs to block z :OUTPUT;--define block output ) BEGIN IF digital_value[] > 6 THEN z = VCC;-- output a 1 ELSEz = GND;-- output a 0 END IF; END; Keywords: IF THEN ELSE END IF

ELSEIF SUBDESIGN fig4_58 ( digtal_value[3..0] :INTPUT;--define inputs to block too_cold, just_right, too_hot :OUTPUT;--define outputs ) VARIABLE status[2..0] :NODE;--holds state of too_cold, just_right, too_hot BEGIN IF digital_value[] <= 8 THEN status[] = b"100"; ELSEIF digital_value[] > 8 AND digital_value[] < 11 THEN status[] = b"010"; ELSEstatus[] = b"001"; END IF; (too_cold, just_right, too_hot) = status[];--update output bits END;

CASE/WHEN SUBDEDSIGN fig4_60 ( p,q,r :INPUT;--define inputs to block s : OUTPUT;--define outputs ) VARIABLE status[2..0] :NODE; BEGIN status[] = (p, q, r);--link input bits in order CASE status[] IS WHEN b"100"=> s = GND; WHEN b"101"=> s = GND; WHEN b"110"=> s = GND; WHEN OTHERS=> s = VCC; END CASE END; Keywords: CASE WHEN OTHERS END CASE

The NAND Latch SUBDESIGN fig5_61 ( sbar, cbar : INPUT;-- active low inputs q, qbar : OUTPUT;-- allow feedback ) BEGIN q = !sbar # !qbar;-- Boolean equations qbar = !cbar # !q; END;

AHDL Flip-Flops JK, D, SR and latch registers are available for use in AHDL. Standard Part FunctionPrimitive Identifier Clock inputclk Asynchronous preset (active-LOW)prn Asynchronous clear (active-LOW)clrn J,K,S,R,D inputsj,k,s,r,d Level triggered ENABLE inputena Q outputq

Single JK Flip-Flop SUBDESIGN fig5_64 ( jin,kin,clkin,preset,clear :INPUT; qout :OUTPUT; ) VARIABLE ff1:JKFF; -- define the FF as JKFF type BEGIN ff1.prn=preset;--optional, default to vcc ff1.clrn=clear; ff1.j=jin; ff1.k=kin; ff1.clk=clkin; qout=ff1.q; END;

MOD 8 Ripple Up Counter SUBDESIGN fig5_71 ( clock : INPUT; q[2..0] : OUTPUT; ) VARIABLE q[2..0] : JKFF;--defines three JK FFs BEGIN q[2..0].j = VCC;-- toggle mode J=K=1 for all FFs q[2..0].k = VCC; q[0].clk = !clock; q[1].clk = !q[0].q; q[2].clk = !q[1].q;-- connect clocks in ripple form END;