0% found this document useful (0 votes)
8 views

Function Procedure Package

fpga is heart of asic industry vhdl helps us to understand fpga this ppt tells us about basics of vhdl function and procedure and how to place it inside a package

Uploaded by

PB
Copyright
© © All Rights Reserved
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Function Procedure Package

fpga is heart of asic industry vhdl helps us to understand fpga this ppt tells us about basics of vhdl function and procedure and how to place it inside a package

Uploaded by

PB
Copyright
© © All Rights Reserved
Available Formats
Download as ODP, PDF, TXT or read online on Scribd
You are on page 1/ 30

library IEEE;

use IEEE.std_logic_1164.all;
use IEEE.std_logic_textio.all;
use IEEE.std_logic_arith.all;
use IEEE.numeric_bit.all;
use IEEE.numeric_std.all;
use IEEE.std_logic_signed.all;
use IEEE.std_logic_unsigned.all;
use IEEE.math_real.all;
use IEEE.math_complex.all;
library STD;
use STD.textio;

Attributes

T'LEFT
is the leftmost value of type T.
(Largest if downto)
T'RIGHT
is the rightmost value of type T.
(Smallest if downto)

T'HIGH

is the highest value of type T.

T'LOW

is the lowest value of type T.

T'POS(X) is the integer position of X in the


discrete type T.
T'VAL(X) is the value of discrete type T at
integer position X.
A'RANGE
is the range A'LEFT to A'RIGHT
or A'LEFT downto A'RIGHT .
A'REVERSE_RANGE is the range of A with to
and downto reversed.
A'LENGTH is the integer value of the number
of elements in array A.
S'EVENT
is true if signal S has had an event
this simulation cycle.

T'POS(X) is the integer position of X in the


discrete type T.
T'VAL(X) is the value of discrete type T at
integer position X.
A'LENGTH is the integer value of the number
of elements in array A.
S'EVENT
is true if signal S has had an event
this simulation cycle.

ype Bit is ('0', '1');


type Bit_vector is array (Natural range <>) of Bit;
type Boolean is (false, true);
type Character is ( --256 characters-- );
subtype Delay_length is Time range 0 fs to Time'high;
type File_open_kind is (read_mode, write_mode, append_mode);
type File_open_status is (open_ok, status_error, name_error, mode_error);
type Integer is range --usually typical integer-- ;
subtype Natural is Integer range 0 to Integer'high;
subtype Positive is Integer range 1 to Integer'high;
type Real is range --usually double precision floating point-- ;
type Severity_level is (note, warning, error, failure);

Function/Procedure/Package

You might also like