numeric_bit.vhdl

来自「vhdl集成电路设计软件.需要用gcc-4.0.2版本编译.」· VHDL 代码 · 共 814 行 · 第 1/3 页

VHDL
814
字号
  -- Id: A.33  function "mod" (L, R: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(R'LENGTH-1 downto 0)  -- Result: Computes "L mod R" where L and R are UNSIGNED vectors.  -- Id: A.34  function "mod" (L, R: SIGNED) return SIGNED;  -- Result subtype: SIGNED(R'LENGTH-1 downto 0)  -- Result: Computes "L mod R" where L and R are SIGNED vectors.  -- Id: A.35  function "mod" (L: UNSIGNED; R: NATURAL) return UNSIGNED;  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Computes "L mod R" where L is an UNSIGNED vector and R  --         is a non-negative INTEGER.  --         If NO_OF_BITS(R) > L'LENGTH, result is truncated to L'LENGTH.  -- Id: A.36  function "mod" (L: NATURAL; R: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(R'LENGTH-1 downto 0)  -- Result: Computes "L mod R" where R is an UNSIGNED vector and L  --         is a non-negative INTEGER.  --         If NO_OF_BITS(L) > R'LENGTH, result is truncated to R'LENGTH.  -- Id: A.37  function "mod" (L: SIGNED; R: INTEGER) return SIGNED;  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Computes "L mod R" where L is a SIGNED vector and  --         R is an INTEGER.  --         If NO_OF_BITS(R) > L'LENGTH, result is truncated to L'LENGTH.  -- Id: A.38  function "mod" (L: INTEGER; R: SIGNED) return SIGNED;  -- Result subtype: SIGNED(R'LENGTH-1 downto 0)  -- Result: Computes "L mod R" where L is an INTEGER and  --         R is a SIGNED vector.  --         If NO_OF_BITS(L) > R'LENGTH, result is truncated to R'LENGTH.  --============================================================================  -- Comparison Operators  --============================================================================  -- Id: C.1  function ">" (L, R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L > R" where L and R are UNSIGNED vectors possibly  --         of different lengths.  -- Id: C.2  function ">" (L, R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L > R" where L and R are SIGNED vectors possibly  --         of different lengths.  -- Id: C.3  function ">" (L: NATURAL; R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L > R" where L is a non-negative INTEGER and  --         R is an UNSIGNED vector.  -- Id: C.4  function ">" (L: INTEGER; R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L > R" where L is a INTEGER and  --         R is a SIGNED vector.  -- Id: C.5  function ">" (L: UNSIGNED; R: NATURAL) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L > R" where L is an UNSIGNED vector and  --         R is a non-negative INTEGER.  -- Id: C.6  function ">" (L: SIGNED; R: INTEGER) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L > R" where L is a SIGNED vector and  --         R is a INTEGER.  --============================================================================  -- Id: C.7  function "<" (L, R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L < R" where L and R are UNSIGNED vectors possibly  --         of different lengths.  -- Id: C.8  function "<" (L, R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L < R" where L and R are SIGNED vectors possibly  --         of different lengths.  -- Id: C.9  function "<" (L: NATURAL; R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L < R" where L is a non-negative INTEGER and  --         R is an UNSIGNED vector.  -- Id: C.10  function "<" (L: INTEGER; R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L < R" where L is an INTEGER and  --         R is a SIGNED vector.  -- Id: C.11  function "<" (L: UNSIGNED; R: NATURAL) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L < R" where L is an UNSIGNED vector and  --         R is a non-negative INTEGER.  -- Id: C.12  function "<" (L: SIGNED; R: INTEGER) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L < R" where L is a SIGNED vector and  --         R is an INTEGER.  --============================================================================  -- Id: C.13  function "<=" (L, R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L <= R" where L and R are UNSIGNED vectors possibly  --         of different lengths.  -- Id: C.14  function "<=" (L, R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L <= R" where L and R are SIGNED vectors possibly  --         of different lengths.  -- Id: C.15  function "<=" (L: NATURAL; R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L <= R" where L is a non-negative INTEGER and  --         R is an UNSIGNED vector.  -- Id: C.16  function "<=" (L: INTEGER; R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L <= R" where L is an INTEGER and  --         R is a SIGNED vector.  -- Id: C.17  function "<=" (L: UNSIGNED; R: NATURAL) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L <= R" where L is an UNSIGNED vector and  --         R is a non-negative INTEGER.  -- Id: C.18  function "<=" (L: SIGNED; R: INTEGER) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L <= R" where L is a SIGNED vector and  --         R is an INTEGER.  --============================================================================  -- Id: C.19  function ">=" (L, R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L >= R" where L and R are UNSIGNED vectors possibly  --         of different lengths.  -- Id: C.20  function ">=" (L, R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L >= R" where L and R are SIGNED vectors possibly  --         of different lengths.  -- Id: C.21  function ">=" (L: NATURAL; R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L >= R" where L is a non-negative INTEGER and  --         R is an UNSIGNED vector.  -- Id: C.22  function ">=" (L: INTEGER; R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L >= R" where L is an INTEGER and  --         R is a SIGNED vector.  -- Id: C.23  function ">=" (L: UNSIGNED; R: NATURAL) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L >= R" where L is an UNSIGNED vector and  --         R is a non-negative INTEGER.  -- Id: C.24  function ">=" (L: SIGNED; R: INTEGER) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L >= R" where L is a SIGNED vector and  --         R is an INTEGER.  --============================================================================  -- Id: C.25  function "=" (L, R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L = R" where L and R are UNSIGNED vectors possibly  --         of different lengths.  -- Id: C.26  function "=" (L, R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L = R" where L and R are SIGNED vectors possibly  --         of different lengths.  -- Id: C.27  function "=" (L: NATURAL; R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L = R" where L is a non-negative INTEGER and  --         R is an UNSIGNED vector.  -- Id: C.28  function "=" (L: INTEGER; R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L = R" where L is an INTEGER and  --         R is a SIGNED vector.  -- Id: C.29  function "=" (L: UNSIGNED; R: NATURAL) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L = R" where L is an UNSIGNED vector and  --         R is a non-negative INTEGER.  -- Id: C.30  function "=" (L: SIGNED; R: INTEGER) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L = R" where L is a SIGNED vector and  --         R is an INTEGER.  --============================================================================  -- Id: C.31  function "/=" (L, R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L /= R" where L and R are UNSIGNED vectors possibly  --         of different lengths.  -- Id: C.32  function "/=" (L, R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L /= R" where L and R are SIGNED vectors possibly  --         of different lengths.  -- Id: C.33  function "/=" (L: NATURAL; R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L /= R" where L is a non-negative INTEGER and  --         R is an UNSIGNED vector.  -- Id: C.34  function "/=" (L: INTEGER; R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L /= R" where L is an INTEGER and  --         R is a SIGNED vector.  -- Id: C.35  function "/=" (L: UNSIGNED; R: NATURAL) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L /= R" where L is an UNSIGNED vector and  --         R is a non-negative INTEGER.  -- Id: C.36  function "/=" (L: SIGNED; R: INTEGER) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: Computes "L /= R" where L is a SIGNED vector and  --         R is an INTEGER.  --============================================================================  -- Shift and Rotate Functions  --============================================================================

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?