1
0
SEm-Labos/Libs/Memory_test/hdl/mti_pkg_pkg.vhd

19 lines
706 B
VHDL
Raw Permalink Normal View History

2024-02-23 13:01:05 +00:00
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
USE std.textio.all;
PACKAGE mti_pkg IS
FUNCTION To_StdLogic (s : BIT) RETURN STD_LOGIC;
FUNCTION TO_INTEGER (input : STD_LOGIC) RETURN INTEGER;
FUNCTION TO_INTEGER (input : BIT_VECTOR) RETURN INTEGER;
FUNCTION TO_INTEGER (input : STD_LOGIC_VECTOR) RETURN INTEGER;
FUNCTION TO_INTEGER (input : STD_ULOGIC_VECTOR) RETURN INTEGER;
PROCEDURE TO_BITVECTOR (VARIABLE input : IN INTEGER; VARIABLE output : OUT BIT_VECTOR);
function conv_std_logic_vector(i : integer; w : integer) return std_logic_vector;
procedure hexread(L : inout line; value:out bit_vector);
procedure hexread(L : inout line; value:out std_logic_vector);
END mti_pkg;