Information AboutVhdl |
|
HISTORY VHDL was originally developed at the behest of the US Department Of Defense in order to ''document'' the behavior of the ASICs that supplier companies were including in equipment. That is to say, VHDL was developed as an alternative to huge, complex manuals which were subject to implementation-specific details. The idea of being able to simulate these "documents" was so obviously attractive that Logic Simulators were developed that could read the VHDL files. The next step was the development of Logic Synthesis tools that read the VHDL, and output a definition of the physical implementation of the circuit. Modern synthesis tools can extract RAM , Counter , and arithmetic blocks out of the code, and implement them according to what the user specifies. Thus, the same VHDL code could be synthesized differently for lowest cost, highest Power efficiency, highest speed, or other requirements. VHDL has a syntax that is essentially a subset of the Ada Programming Language , along with an added set of constructs to handle the parallelism inherent in hardware designs. VHDL is Strongly-typed and Case Insensitive . The initial version of VHDL, designed to IEEE standard 1076-1987, included a wide range of data types, including numerical ( Integer and Real ), logical ( Bit and Boolean ), Character and Time , plus 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 , which defined the 9-value std_logic. The second issue of IEEE 1076 , in 1993, made the syntax more consistent, allowed more flexibility in naming, extended the character type to allow ISO-8859-1 printable characters, added the xnor operator, etc.More recently, the language has been extended by introducing signed and unsigned types to facilitate arithmetical operations, analog and mixed-signal circuit design extensions, VITAL (VHDL Initiative Towards ASIC Libraries), and Microwave circuit design extensions.DISCUSSION VHDL a fairly general-purpose programming language, although it requires a simulator on which to run the code. It can read and write files on the host computer, so a VHDL program can be written that generates another VHDL program to be incorporated in the design being developed. Because of this general-purpose nature, it is possible to use VHDL to write a ''testbench'' that verifies the functionality of the design using files on the host computer to define stimuli, interacts with the user, and compares results with those expected. This is similar to the capabilities of the Verilog Language . VHDL is a strongly typed language, and as a result is considered by some to be superior to Verilog. In fact there has always been quite an intense debate which amounts to a Holy War amongst developers over which is the superior language. However, both languages make it easy for the unwary and inexperienced to produce code that simulates successfully, but that cannot be synthesized into a real device, or else is too large to be practicable. A particular pitfall in both languages is the accidental production of Transparent Latch es rather than D-type Flip-flops as storage elements. The key advantage of VHDL when used for systems design is that it allows the behaviour of the required system to be described (modelled) and verified (simulated) before synthesis tools translate the design into real hardware (gates and wires). Another benefit is that VHDL allows the description of a concurrent system (many parts, each with its own sub-behaviour, working together at the same time). This is unlike many of the other computing languages such as BASIC, Pascal, C, or lower-level assembly language which runs at machine code level, which all run sequentially, one instruction at a time on Von Neumann Architecture s. A final point is that when a VHDL model is translated into the "gates and wires" that are mapped onto a programmable logic device such as a CPLD or FPGA , then it is actual hardware that is being configured, rather than the VHDL code being "executed" as if on some form of a processor chip. CODE EXAMPLES These are written in VHDL-93 with its more consistent syntax. D-type flip-flop The following example is a D-type flip-flop with a synchronous reset that stores one bit of memory :
Fibonacci series The following example is a little more real-world:
When simulated, it generates the Fibonacci Sequence successfully, until Next_Fib overflows the range of the natural type. When synthesized with an FPGA vendor's tools, an "Adder" module was implemented, as hoped for. Otherwise, the assignment statement would have to be replaced by a component instantiation to logic that implements that function. SEE ALSO EXTERNAL LINKS Tutorials, FAQs and guides
Interested bodies
Examples
Software
|
|
|