Transcription of AN Introduction to VHDL - Overview
1 AN Introduction to VHDLO verviewDinesh SharmaMicroelectronics Group, EE DepartmentIIT Bombay, MumbaiAugust 2008 Dinesh SharmaVHDLD esign Units in VHDLO bject and Data TypesPart IVHDL Design Units1 Design Units in vhdl entityArchitectureComponentConfiguration Packages and Libraries2 Object and Data TypesScalar data typesComposite Data TypesDinesh SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesAn Introduction to VHDLVHDL is a hardware description language which uses thesyntax of ADA.
2 Like any hardware description language, it isused for many describing a modeling simulation of early performance estimation of system synthesis of fault simulation , test and verification of SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesDesign Elements in vhdl : ENTITYThe basic design element in vhdl is called an ENTITY .An ENTITY represents a template for a hardware describes just the outside view of a hardware module namely its interface with other modules in terms of inputand output hardware block can be the entire design, a part of it orindeed an entire test bench.
3 A test bench includes the circuit being designed, blockswhich apply test signals to it and those which monitor inner operation of the entity is described by anARCHITECTURE associated with SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesENTITY DECLARATIONThe declaration of an ENTITY describes the signals whichconnect this hardware to the outside. These are calledportsignals. It also provides optional values of manifest are called 93entitynameisgeneric(list);port(list);e nd entityname; vhdl 87entitynameisgeneric(list);port(list);e nd name;Dinesh SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesENTITY EXAMPLEVHDL 93entity flipflop isgeneric (Tprop:delaylength);port (clk, d: in bit; q: out bit);end entity flipflop; vhdl 87entity flipflopgeneric (Tprop: delaylength);port (clk, d: in bit; q: out bit);end flipflop.
4 The entity declares port signals, their directions and signals are used by an architecture associated with SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesDesign Elements in vhdl : ARCHITECTUREAn ARCHITECTURE describes how an ENTITY operates. AnARCHITECTURE is always associated with an can be multiple ARCHITECTURES associated with ARCHITECTURE can describe an entity in a structuralstyle, behavioural style or mixed language provides constructs for describing components,their interconnects and composition (structural descriptions).
5 The language also includes signal assignments, sequentialandconcurrent statements for describing data and control flow,andfor behavioural SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesARCHITECTURE SyntaxVHDL 93architecturenameofentity-nameis(declar ations)begin(concurrent statements)end architecturename; vhdl 87architecturenameofentity-nameis(declar ations)begin(concurrent statements)end architecturename;The architecture inherits the port signals from its mustdeclare its internal signals.
6 Concurrent statements constitutingthe architecture can be placed in any SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesARCHITECTURE ExampleVHDL 93architecture simple of dff issignal ..; architecture simple; vhdl 87architecture simple of dff issignal ..; simple;Dinesh SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesDesign Elements in vhdl : COMPONENTSAn ENTITY ARCHITECTURE pair actually describes a design, we might use severalinstancesof the instance of a component type may be distinguishedby using a unique , a componentinstancewith a unique instance nameis associated with a componenttype, which in turn isassociated with an ENTITY ARCHITECTURE is like saying U1 (component instance) is a D Flip Flop(componenttype) which is associated with an entity DFF(which describes its pin diagram)
7 Using architectureLS7474 (which describes its inner operation).Dinesh SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesComponent ExampleVHDL 93componentnameisgeneric(list);port(list );end componentname;EXAMPLE:component flipflop isgeneric (Tprop:delaylength);port (clk, d: in bit; q: out bit);end component flipflop; vhdl 87componentnamegeneric(list);port(list); end component;EXAMPLE:component flipflopgeneric (Tprop: delaylength);port (clk, d: in bit; q: out bit);end component.
8 Dinesh SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesDesign Elements in vhdl : ConfigurationStructural Descriptions describe components and component is an instance of a component type is associated withan ENTITY ARCHITECTURE architecture used can itself contain other components -whose type will then be associated with otherENTITY ARCHITECTURE configuration describes linkages between componenttypes and ENTITY ARCHITECTURE pairs. It specifiesbindings for all components used in an architecture associatedwith an SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesDesign Elements in vhdl .
9 PackagesRelated declarations and design elements like subprogramsand procedures can be placed in a package for package has a declarative part and an implementation is somewhat like entity and architecture for in a package can be referred to by description can include a use clause to incorporate thepackage in the design. Objects in the package then becomevisible to the description without having to use the dot referenceas SharmaVHDLD esign Units in VHDLO bject and Data TypesentityArchitectureComponentConfigur ationPackages and LibrariesDesign Elements in vhdl : LibrariesMany design elements such as packages, definitions and entireentity architecture pairs can be placed in a description invokes the library by first declaring it:For example,Library IEEE.
10 Objects in the Library can then be incorporated in the designbya use example,Use this example, IEEE is a library and stdlogic1164 is apackage in the SharmaVHDLD esign Units in VHDLO bject and Data TypesScalar data typesComposite Data TypesObject and Data Types in VHDLVHDL defines several types ofobjects. These includeconstants, variables, types of values which can be assigned to these objects arecalleddata may be assigned to example, aconstant, avariableand asignalcan all havevalues which are ofdata of objects include theirobjecttype as well as thedatatype of values that they can examplesignalEnable:BIT.