What Is a Vhdl With/Select Statement?

Hardware description languages are often used to describe functions that return only true or false, known as Boolean functions. In Very High Speed Integrated Circuit Hardware Description Language (VHDL), the select statement, which is similar to the switch and case statements in other languages, provides a convenient means of doing so.

  1. Syntax

    • The general syntax of the with-select-when statement is:

      with {selection} select

      {expression} when {condition},

      {expression} when {condition},

      {expression} when {others}.

    Evaluation

    • When VHDL tools evaluate a with-select-when statement they check if the selecting expression is equal to any of the when conditions. The expression selected is the first with a matching condition. The condition can be a single value or a range of values.

    Limitations

    • In a VHDL with-select-when statement, no two conditions can overlap and all possible values of {selection} must be covered by the set of conditions, unless an others condition is included. The others condition represents expression values that are not otherwise represented.

Related Searches:

References

Comments

You May Also Like

  • Altera Quartus II Tutorial

    Altera's Quartus II software provides a development environment for designing field-programmable gate arrays, or FPGAs. You can use the software to create...

  • What Is the File Extension Vhd?

    Files that end in the .vhd extension may be Virtual PC virtual hard disk files or VHDL source files.

  • A Tutorial for Altera FPGA

    Altera provides the Quartus II software to program FPGA boards, also known as field-programmable gate arrays. FPGAs can demonstrate basic computer engineering...

  • How to Use Select in Insert Statement

    Some versions of Structured Query Language (SQL) allow you to use Select statements to obtain values from related tables to import into...

  • How to Do a Sort in a Select Statement of ABAP

    ABAP (Advanced Business Application Programming) is a computer language for programming the business applications created with SAP software. The ABAP functions ...

  • How to Create a VCD File in ModelSim

    VCD files, also referred to as Value Change Dump files, are ASCII-based files that describe a digital waveform of the VHDL simulator....

  • What Is Boolean Language?

    Boolean language is based on a logic system used extensively in computers and database design. It is based on the algebra work...

  • Tutorial for Verilog HDL

    Verilog HDL is a major hardware description language (HDL) used by hardware design professionals, particularly in the semiconductor and electronic design industry....

Related Ads

Featured