📄 std_logic_plus.pkg
字号:
-- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -