Docsity

VHDL short course, Digital electronics, Slide di Elettronica Digitale

Toggle sidebar
bg1
Digital Electronics Sep-15
1a- VHDL Primer 1
1
Part of this lecture has been derived from material
provided by Maurizio Tranchero
VHDL Short Course
VHDL Short Course
A language for the description of digital
systems
A hardware description language enables a precise, formal description of an
electronic circuit that allows for the automated analysis, simulation, and
simulated testing of an electronic circuit. It also allows for the compilation, that is
the translation of an HDL program into a lower level specification of physical
electronic components, such as a a library of elementary clogic gates or the set of
masks used to create an integrated circuit.
A hardware description language looks much like a programming language such
as C ; it is a textual description consisting of expressions, statements and control
structures. One important difference between most programming languages and
HDLs is that HDLs explicitly include the notion of time.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46

Anteprima parziale del testo

Scarica VHDL short course, Digital electronics e più Slide in PDF di Elettronica Digitale solo su Docsity!

VHDL was originally developed at the behest of the US DoD in order to document the behavior of theintegrated circuits that supplier companies were including in equipment.The idea of being able to simulate the ASICs from the information in this documentation was so obviouslyattractive that logic simulators were developed that could read the VHDL files. The next step was thedevelopmentimplementation of the circuit.The initial version of VHDL, designed to IEEE standard 1076-1987, included a wide range of data types,includingplus arrays of bit called bit_vector and of character called string.A problem not solved by this edition, however, was "multi-valued logic", where a signal's drive strength(none, weak or strong) and unknown values are also considered. This required IEEE standard 1164, whichdefined the 9-value logic types: scalar std_logic and its vector version std_logic_vector.The updatedextended the character type to allow ISO-8859-1 printable characters, added the xnor operator, etc.[Minor changes in the standard (2000 and 2002) added the idea of protected types (similar to the concept ofclass in C++) and removed some restrictions from port mapping rules.In addition to IEEE standard 1164, several child standards were introduced to extend functionality of thelanguage. IEEE standard 1076.2 added better handling of real and complex data types. IEEE standard 1076.3introduced(known asSome other standards support wider use of VHDL, notably VITAL (VHDL Initiative Towards ASICLibraries) andIn June 2006, the VHDL Technical Committee ofof the standard) approved so called Draft 3.0 of VHDL-2006. While maintaining full compatibility with olderversions, this proposed standard provides numerous extensions that make writing and managing VHDL codeeasier. Key changes include incorporation of child standards (1164, 1076.2, 1076.3) into the main 1076standard, an extended set of operators, more flexible syntax ofVHPI (interface to C/C++ languages) and a subset of PSL (should improve quality of synthesizable VHDL code, make testbenches more flexible, and allow wider use ofVHDL for system-level descriptions.In February 2008, Accellera approved VHDL 4.0 also informally known as VHDL 2008, which addressedmore than 90 issues discovered during the trial period for version 3.0 and includes enhanced generic types. In2008, Accellera released VHDL 4.0 to the IEEE for balloting for inclusion in IEEE 1076-2008. The VHDLstandard IEEE 1076-2008 was published in January 2009. Part of this lecture has been derived from material^ •^ •^ •^ •^ •^^1983 VHSIC (Very High Speed Integrated Circuits) projectdevelops a hardware description language for ASICprojects documentation^19871993 integrations (multi-valued logic, additionaloperators…) 2000/2002^2008 VHDL-AMSsigned and unsigned provided by Maurizio Tranchero numerical IEEE 1076 ofmicrowave logic: the Department of Defense (DOD) inside the: IEEE adopts it as a STANDARD (1076): The language is improved with “minor”: last standard currently beeing defined ) provided analog and mixed-signal circuit design extensions.sinthesis(integer, in 1993, made the syntax more consistent, allowed more flexibility in naming, circuit design extensions.: minor additions^ Historical notes types to facilitate arithmetical operations on vectors. IEEE standard 1076.1 toolsand^ thatreal), read logicalAccellerathe VHDL, Property Specification Language(bit (delegated by IEEE to work on the next update case andand and output generate boolean), a statements, incorporation ofdefinition VHDL Short Course character ). These changesof the physicaland specify time,^4 ]

  • A hardware description language enables a precise, formal description of anelectronicsimulated testing of an electronic circuit. It also allows for the compilation, that isthe translation of an HDL program into a lower level specification of physicalelectronic components, such as a a library of elementary clogic gates or the set ofmasks used to create an integrated circuit.A hardware description language looks much like a programming language suchas C ; it is a textual description consisting of expressions, statements and controlstructures. One important difference between most programming languages andHDLs is that HDLs explicitly include the notion of time. Part of this lecture has been derived from material A language for the description of digitalsystems provided by Maurizio Tranchero circuit that VHDL Short Course allows for the automated analysis, VHDL Short Course simulation, and
  • Part of this lecture has been derived from material • • The VHDL Bible: – Two good books for learning: – – provided by Maurizio Tranchero IEEE Standard VHDL Language Reference Manual IEEE Standard 1076P.J. Ashenden,Morgan & KaufmannS. Mazor and P. Langstraat,Kluver Academic Publishers Reference Books The Programmer’s Guide to VHDL A GUIDE TO VHDLVHDL Short Course , ,,
  • Part of this lecture has been derived from material • • VHDL – –What is it? – – –– provided by Maurizio Tranchero VHSIC Hardware Description LanguageVery High Speed Integrated Circuits It is a programmming language but it is NOT used as aprogramming language It’s a language born and developed forProgramming language = I write an algorithm running on existinghardware.Description language = I describe how to interconnect hardwareto implement an algorithm Introduction hardware description VHDL Short Course
  • Part of this lecture has been derived from material • •• Helps todifferent levels of abstractionAllows tooperationsAllows to implement (specific software tools, physical implementationsof the system. provided by Maurizio Tranchero describe simulate Goalsa digital electronic system at its behaviour and its synthetize ), by means of VHDL Short Course
  • Part of this lecture has been derived from material • technology -independent – –– provided by Maurizio Tranchero Adopted by a number of HW and SW providers/ vendorsSimplifies and makes possible “updates” of the systembeeing designed.Allows the documentation of the design (comments) Advantages design (within certain limits) VHDL Short Course
  • Part of this lecture has been derived from material • Improvement in the design quality––– provided by Maurizio Tranchero Allows to analyze different alternativesAllows several levels of abstraction•••Reuse and sharing of already developed blocks Verification at a high level of abstractionComparison of the performances among differentlevels of abstraction.Integration between block developed at differentlevels Advantages(2) VHDL Short Course
  • Part of this lecture has been derived from material • Allows to use different “Abstraction levels” – – – provided by Maurizio Tranchero Gate level • describe the system in terms of elementary logic blockRegister-Transfer level • Describe the system as an interconnection of memoryAlgorithmic or Behavioural • Describe the system in terms of its functionalityelements and logic structures Abstraction levels VHDL Short Course
  • The gate levels is the the lowest one and is nowadays seldom used by thedesigner, although it is the level into which all designs are transformed (mostlyby CAD tools) before the final implementation odf the system.Its elementary building blocks are the basic logic gates and storage elements. Part of this lecture has been derived from material • •• Elementary component is the logic gateDescribes interconnectionsDescribes gates used in the design provided by Maurizio Tranchero Gate Level VHDL Short Course
  • Part of this lecture has been derived from material • • The elementary components are registers,adders, multipliers, …Describes interconnections between objects provided by Maurizio Tranchero Register Transfer Level VHDL Short Course
  • Part of this lecture has been derived from material • • Describes the behaviour as a sequence ofoperations.Algorithms and State Machines are described provided by Maurizio Tranchero Algorithmic or Behavioural VHDL Short Course
  • Part of this lecture has been derived from material • Powerful tool for top down design• Allows to check specification throughout the• Allows design re-use• Allows multiple designers to operate concurrently• Allows the independent development of IPsdesign process provided by Maurizio Tranchero Mixing Abstraction Levels VHDL Short Course
  • The traditional way to design a digital system was in the past to assemblehierarchically elementary building blocks which were already avaiilable as offthe shelf component or as standard cells in case of an Part of this lecture has been derived from material • In the past to build an adder… provided by Maurizio Tranchero AB Ci A first example (Gate Level) S VHDL Short Course Co
  • Part of this lecture has been derived from material • • * allowed operations depend on the data type A <= B + C after 5.0 ns If A, B and C have been correctly predefined * will generate: provided by Maurizio Tranchero BC A first example (RTL)^88 +;^8 VHDL Short Course A
  • Part of this lecture has been derived from material • •••• One of the VHDL functions is to describe and document thebehaviour of a system in a clear and unambigous way.Its is not guaranteed that a system described may beimplementedSometimes it is IMPOSSIBLE to physically implement thecircuit.A VHDL file may be the description of a system alreadydeveloped and in operationMay be just a way to describe the stimula to be used to testthe system (Workbench) provided by Maurizio Tranchero Description / Documentation VHDL Short Course
  • Part of this lecture has been derived from material • • design methodology which proceeds through several levels ofabstraction :––––Passing from one level to the following one implies specificdesign choices as:–– provided by Maurizio Tranchero AlgorithmicRTL (register transfer level)Unit delay logic gatesReal delay logic gatesType of adder used (Ripple Carry, Carry Look Ahead,Carry Select)Type of available logic gates Top - Down Design (1) VHDL Short Course
  • Part of this lecture has been derived from material • •••• A system described in VHDL is SIMULATED toanalyze its behaviour (algorithmic simulation)It is necessary to provide stimula (INPUT)And to have a system capable to observe theevolution of the model during the simulation and torecors its variationsThe simulator must be capable to represent avariable as “unknown”.Package STD_LOGIC_1164 provided by Maurizio Tranchero Simulation VHDL Short Course
  • Part of this lecture has been derived from material • ••• Mapping from the behavioural description and thegate level descriptionSinthesis is performed by programs which rely onlibraries of available logic gates provided by siliconfoundries or FPGA vendors.Sinthesis is a critical process which must be guidedand optimized.Only a limited subset of VHDL may be directlysinthetized provided by Maurizio Tranchero Logic sinthesis VHDL Short Course
  • Part of this lecture has been derived from material • • The main difference with respect to other programminglanguages is that a model described in VHDL embeds theconcept of time and all events take place in subsequentinstants of time .Instructions may be executed AT THE SAME TIMEindependently of the order in which they have beenwritten in the description (concurrent execution)Other differences are – –– provided by Maurizio Tranchero Existence of the “delay” and of the simulation environmentDescription at different levels of abstractionDescription of components and their instantiation in a structuraldescription. Design in VHDL (2) VHDL Short Course
  • Part of this lecture has been derived from materialprovided by Maurizio Tranchero VHDL DESIGN VHDL Short Course