This website uses cookies. By using this site, you consent to the use of cookies. For more information, please take a look at our Privacy Policy.
Home > FPGA Technical Tutorials > Design Recipes for FPGAs Using Verilog and VHDL > Design Automation of FPGAs > std_logic Type Definition

TABLE OF CONTENTS

Xilinx FPGA FPGA Forum

std_logic Type Definition

FONT SIZE : AAA

As it is such an important type, the std_logic type is described in this section. The type has the following definition:

1

uninitialized. This signal hasn’t been set yet.

unknown. Impossible to determine this value/result.

logic 0

logic 1

High Impedance

Weak signal, can’t tell if it should be 0 or 1

Weak signal that should probably go to 0

Weak signal that should probably go to 1

Don’t care

These definitions allow resolution of logic signals in digital designs in a standard manner that is predictable and repeatable across software tools and platforms. The operations that can be carried out on the basic std_logic data types are the standard built-in VHDL logic functions: 

• and

• nand

• or

• nor

• xor

• xnor

• not

An example of the use of the std_logic library would be to define a simple logic gate, in this case a three input nand gate as shown in the following listing. The logic pin types are now defined using the IEEE standard library type std_logic rather than the default bit type. 

1 library ieee;

2 use ieee.std_logic_1164.all;

3

4 entity nand3 is

5 port (

6 in0, in1, in2 : in std_logic;

7 out1 : out std_logic

8 );

9 end;

10

HDL based FPGA design flowpng

Figure 5.3 HDL based FPGA design flow.

11 architecture simple of nand3 is

12 begin

13 out1 <= in0 nand in1 nand in2;

14 end;

  • XC4020E-4HQ240C

    Manufacturer:Xilinx

  • FPGA XC4000E Family 20K Gates 1862 Cells 0.35um Technology 5V 240-Pin HSPQFP EP
  • Product Categories: FPGAs

    Lifecycle:Obsolete -

    RoHS: No RoHS

  • XC4VSX25-10FF668I

    Manufacturer:Xilinx

  • FPGA Virtex-4 SX Family 23040 Cells 90nm Technology 1.2V 668-Pin FCBGA
  • Product Categories: Disjoncteur

    Lifecycle:Active Active

    RoHS: No RoHS

  • XC4VSX25-11FF668I

    Manufacturer:Xilinx

  • FPGA Virtex-4 SX Family 23040 Cells 90nm Technology 1.2V 668-Pin FCBGA
  • Product Categories: Chip de gestion de batterie

    Lifecycle:Active Active

    RoHS: No RoHS

  • XC2018-70PC68I

    Manufacturer:Xilinx

  • Field Programmable Gate Array (FPGA)
  • Product Categories:

    Lifecycle:Any -

    RoHS: -

  • XC4VSX35-11FF668I

    Manufacturer:Xilinx

  • FPGA Virtex-4 SX Family 34560 Cells 90nm Technology 1.2V 668-Pin FCBGA
  • Product Categories: FPGAs

    Lifecycle:Active Active

    RoHS: No RoHS

Need Help?

Support

If you have any questions about the product and related issues, Please contact us.