⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 numeric_std.vhdl

📁 vhdl集成电路设计软件.需要用gcc-4.0.2版本编译.
💻 VHDL
📖 第 1 页 / 共 3 页
字号:
  -- Result subtype: SIGNED(ARG'LENGTH-1 downto 0)  -- Result: Performs a shift-right on a SIGNED vector COUNT times.  --         The vacated positions are filled with the leftmost  --         element, ARG'LEFT. The COUNT rightmost elements are lost.  --============================================================================  -- Id: S.5  function ROTATE_LEFT (ARG: UNSIGNED; COUNT: NATURAL) return UNSIGNED;  -- Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)  -- Result: Performs a rotate-left of an UNSIGNED vector COUNT times.  -- Id: S.6  function ROTATE_RIGHT (ARG: UNSIGNED; COUNT: NATURAL) return UNSIGNED;  -- Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)  -- Result: Performs a rotate-right of an UNSIGNED vector COUNT times.  -- Id: S.7  function ROTATE_LEFT (ARG: SIGNED; COUNT: NATURAL) return SIGNED;  -- Result subtype: SIGNED(ARG'LENGTH-1 downto 0)  -- Result: Performs a logical rotate-left of a SIGNED  --         vector COUNT times.  -- Id: S.8  function ROTATE_RIGHT (ARG: SIGNED; COUNT: NATURAL) return SIGNED;  -- Result subtype: SIGNED(ARG'LENGTH-1 downto 0)  -- Result: Performs a logical rotate-right of a SIGNED  --         vector COUNT times.  --============================================================================  --============================================================================  ------------------------------------------------------------------------------  --   Note : Function S.9 is not compatible with VHDL 1076-1987. Comment  --   out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.9  function "sll" (ARG: UNSIGNED; COUNT: INTEGER) return UNSIGNED; --V93  -- Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)  -- Result: SHIFT_LEFT(ARG, COUNT)  ------------------------------------------------------------------------------  -- Note : Function S.10 is not compatible with VHDL 1076-1987. Comment  --   out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.10  function "sll" (ARG: SIGNED; COUNT: INTEGER) return SIGNED; --V93  -- Result subtype: SIGNED(ARG'LENGTH-1 downto 0)  -- Result: SHIFT_LEFT(ARG, COUNT)  ------------------------------------------------------------------------------  --   Note : Function S.11 is not compatible with VHDL 1076-1987. Comment  --   out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.11  function "srl" (ARG: UNSIGNED; COUNT: INTEGER) return UNSIGNED; --V93  -- Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)  -- Result: SHIFT_RIGHT(ARG, COUNT)  ------------------------------------------------------------------------------  --   Note : Function S.12 is not compatible with VHDL 1076-1987. Comment  --   out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.12  function "srl" (ARG: SIGNED; COUNT: INTEGER) return SIGNED; --V93  -- Result subtype: SIGNED(ARG'LENGTH-1 downto 0)  -- Result: SIGNED(SHIFT_RIGHT(UNSIGNED(ARG), COUNT))  ------------------------------------------------------------------------------  --   Note : Function S.13 is not compatible with VHDL 1076-1987. Comment  -- out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.13  function "rol" (ARG: UNSIGNED; COUNT: INTEGER) return UNSIGNED; --V93  -- Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)  -- Result: ROTATE_LEFT(ARG, COUNT)  ------------------------------------------------------------------------------  --   Note : Function S.14 is not compatible with VHDL 1076-1987. Comment  --   out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.14  function "rol" (ARG: SIGNED; COUNT: INTEGER) return SIGNED; --V93  -- Result subtype: SIGNED(ARG'LENGTH-1 downto 0)  -- Result: ROTATE_LEFT(ARG, COUNT)  ------------------------------------------------------------------------------  -- Note : Function S.15 is not compatible with VHDL 1076-1987. Comment  --   out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.15  function "ror" (ARG: UNSIGNED; COUNT: INTEGER) return UNSIGNED; --V93  -- Result subtype: UNSIGNED(ARG'LENGTH-1 downto 0)  -- Result: ROTATE_RIGHT(ARG, COUNT)  ------------------------------------------------------------------------------  --   Note : Function S.16 is not compatible with VHDL 1076-1987. Comment  --   out the function (declaration and body) for VHDL 1076-1987 compatibility.  ------------------------------------------------------------------------------  -- Id: S.16  function "ror" (ARG: SIGNED; COUNT: INTEGER) return SIGNED; --V93  -- Result subtype: SIGNED(ARG'LENGTH-1 downto 0)  -- Result: ROTATE_RIGHT(ARG, COUNT)  --============================================================================  --   RESIZE Functions  --============================================================================  -- Id: R.1  function RESIZE (ARG: SIGNED; NEW_SIZE: NATURAL) return SIGNED;  -- Result subtype: SIGNED(NEW_SIZE-1 downto 0)  -- Result: Resizes the SIGNED vector ARG to the specified size.  --         To create a larger vector, the new [leftmost] bit positions  --         are filled with the sign bit (ARG'LEFT). When truncating,  --         the sign bit is retained along with the rightmost part.  -- Id: R.2  function RESIZE (ARG: UNSIGNED; NEW_SIZE: NATURAL) return UNSIGNED;  -- Result subtype: UNSIGNED(NEW_SIZE-1 downto 0)  -- Result: Resizes the SIGNED vector ARG to the specified size.  --         To create a larger vector, the new [leftmost] bit positions  --         are filled with '0'. When truncating, the leftmost bits  --         are dropped.  --============================================================================  -- Conversion Functions  --============================================================================  -- Id: D.1  function TO_INTEGER (ARG: UNSIGNED) return NATURAL;  -- Result subtype: NATURAL. Value cannot be negative since parameter is an  --             UNSIGNED vector.  -- Result: Converts the UNSIGNED vector to an INTEGER.  -- Id: D.2  function TO_INTEGER (ARG: SIGNED) return INTEGER;  -- Result subtype: INTEGER  -- Result: Converts a SIGNED vector to an INTEGER.  -- Id: D.3  function TO_UNSIGNED (ARG, SIZE: NATURAL) return UNSIGNED;  -- Result subtype: UNSIGNED(SIZE-1 downto 0)  -- Result: Converts a non-negative INTEGER to an UNSIGNED vector with  --         the specified SIZE.  -- Id: D.4  function TO_SIGNED (ARG: INTEGER; SIZE: NATURAL) return SIGNED;  -- Result subtype: SIGNED(SIZE-1 downto 0)  -- Result: Converts an INTEGER to a SIGNED vector of the specified SIZE.  --============================================================================  -- Logical Operators  --============================================================================  -- Id: L.1  function "not" (L: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Termwise inversion  -- Id: L.2  function "and" (L, R: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Vector AND operation  -- Id: L.3  function "or" (L, R: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Vector OR operation  -- Id: L.4  function "nand" (L, R: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Vector NAND operation  -- Id: L.5  function "nor" (L, R: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Vector NOR operation  -- Id: L.6  function "xor" (L, R: UNSIGNED) return UNSIGNED;  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Vector XOR operation  -- ---------------------------------------------------------------------------  -- Note : Function L.7 is not compatible with VHDL 1076-1987. Comment  -- out the function (declaration and body) for VHDL 1076-1987 compatibility.  -- ---------------------------------------------------------------------------  -- Id: L.7  function "xnor" (L, R: UNSIGNED) return UNSIGNED; --V93  -- Result subtype: UNSIGNED(L'LENGTH-1 downto 0)  -- Result: Vector XNOR operation  -- Id: L.8  function "not" (L: SIGNED) return SIGNED;  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Termwise inversion  -- Id: L.9  function "and" (L, R: SIGNED) return SIGNED;  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Vector AND operation  -- Id: L.10  function "or" (L, R: SIGNED) return SIGNED;  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Vector OR operation  -- Id: L.11  function "nand" (L, R: SIGNED) return SIGNED;  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Vector NAND operation  -- Id: L.12  function "nor" (L, R: SIGNED) return SIGNED;  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Vector NOR operation  -- Id: L.13  function "xor" (L, R: SIGNED) return SIGNED;  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Vector XOR operation  -- ---------------------------------------------------------------------------  -- Note : Function L.14 is not compatible with VHDL 1076-1987. Comment  -- out the function (declaration and body) for VHDL 1076-1987 compatibility.  -- ---------------------------------------------------------------------------  -- Id: L.14  function "xnor" (L, R: SIGNED) return SIGNED; --V93  -- Result subtype: SIGNED(L'LENGTH-1 downto 0)  -- Result: Vector XNOR operation  --============================================================================  -- Match Functions  --============================================================================  -- Id: M.1  function STD_MATCH (L, R: STD_ULOGIC) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: terms compared per STD_LOGIC_1164 intent  -- Id: M.2  function STD_MATCH (L, R: UNSIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: terms compared per STD_LOGIC_1164 intent  -- Id: M.3  function STD_MATCH (L, R: SIGNED) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: terms compared per STD_LOGIC_1164 intent  -- Id: M.4  function STD_MATCH (L, R: STD_LOGIC_VECTOR) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: terms compared per STD_LOGIC_1164 intent  -- Id: M.5  function STD_MATCH (L, R: STD_ULOGIC_VECTOR) return BOOLEAN;  -- Result subtype: BOOLEAN  -- Result: terms compared per STD_LOGIC_1164 intent  --============================================================================  -- Translation Functions  --============================================================================  -- Id: T.1  function TO_01 (S: UNSIGNED; XMAP: STD_LOGIC := '0') return UNSIGNED;  -- Result subtype: UNSIGNED(S'RANGE)  -- Result: Termwise, 'H' is translated to '1', and 'L' is translated  --         to '0'. If a value other than '0'|'1'|'H'|'L' is found,  --         the array is set to (others => XMAP), and a warning is  --         issued.  -- Id: T.2  function TO_01 (S: SIGNED; XMAP: STD_LOGIC := '0') return SIGNED;  -- Result subtype: SIGNED(S'RANGE)  -- Result: Termwise, 'H' is translated to '1', and 'L' is translated  --         to '0'. If a value other than '0'|'1'|'H'|'L' is found,  --         the array is set to (others => XMAP), and a warning is  --         issued.end NUMERIC_STD;

⌨️ 快捷键说明

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