std_logic_plus.pkg

来自「6端口寄存器IP内核VHDL源代码」· PKG 代码 · 共 34 行

PKG
34
字号
-- Source: T:/hwdev/generic/VHDL/std_logic_plus.pkg
-- Designer: Tim Pagden    
 
-- Description: Extensions to the std_logic_class package to allow
-- conversion functions and mixed operators

-- Development Notes: T:/hwdev/generic/etc/std_logic_plus_pkg.dnh
-- 27.12.97 TP 0.0 created from std_ops.pkg

library IEEE;
library vfp;

package std_logic_plus is
  use IEEE.std_logic_1164.all;
  use vfp.std_logic_class.all;
  -- use vfp.integer_class.all;
  -- use vfp.real_class.all;
  
  -- extensions to IEEE.std_logic_class
  -- std_logic-related types defined in std_logic_1164

  -- conversion functions
  -- -------------------- 
  function to_twos_complement (a: integer) return twos_complement;           -- 29.11.95
  function to_twos_complement (a: std_ulogic_vector) return twos_complement; -- 29.11.95
  function to_twos_complement (a: std_logic_vector) return twos_complement;  -- 29.11.95

  function to_std_ulogic_vector (a: integer) return std_ulogic_vector;          -- 29.11.95
  function to_std_ulogic_vector (a: twos_complement) return std_ulogic_vector;  -- 29.11.95
  function to_std_ulogic_vector (a: integer; width: integer) return std_ulogic_vector;  -- 29.11.95
  function to_std_logic_vector (a: integer) return std_logic_vector;            -- 05.07.95
  
  -- arithmetic operators
  -- 

⌨️ 快捷键说明

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