亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? l_conversions_p.vhd

?? 8237 VHDL代碼
?? VHD
字號:
-- Altera Microperipheral Reference Design Version 0802
--------------------------------------------------------------------------------
--  File Name: l_conversions_p.vhd
--------------------------------------------------------------------------------
--  Copyright (C) 1997, 1998 Free Model Foundation
-- 
--  This program is free software; you can redistribute it and/or modify
--  it under the terms of the GNU General Public License version 2 as
--  published by the Free Software Foundation.
-- 
--  This package was written by SEVA Technologies, Inc. and donated to the FMF.
--  www.seva.com
--
--  MODIFICATION HISTORY:
-- 
--  version: |  author:  | mod date: | changes made:
--    V1.0     R. Steele   97 DEC 05   Added header and formatting to SEVA file
--    V1.1     R. Munden   98 NOV 28   Corrected some comments
-- 
--------------------------------------------------------------------------------

LIBRARY IEEE;   
USE IEEE.std_logic_1164.ALL;

--------------------------------------------------------------------------------
--  CONVERSION FUNCTION SELECTION TABLES
--------------------------------------------------------------------------------
-- 
--  FROM         TO: std_logic_vector std_logic  natural     time     string
--  -----------------|---------------|---------|---------|---------|-----------
--  std_logic_vector |      N/A      |   N/A   |  to_nat | combine | see below
--  std_logic        |      N/A      |   N/A   |  to_nat | combine | see below
--  natural          |     to_slv    |  to_sl  |   N/A   | to_time | see below
--  time             |      N/A      |   N/A   |  to_nat | N/A     | to_time_str
--  hex string       |       h       |   N/A   |    h    | combine | N/A
--  decimal string   |       d       |   N/A   |    d    | combine | N/A
--  octal string     |       o       |   N/A   |    o    | combine | N/A
--  binary string    |       b       |   N/A   |    b    | combine | N/A
--  -----------------|---------------|---------|---------|---------|-----------
--
--  FROM           TO: hex string decimal string octal string  binary string 
--  -----------------|------------|-------------|------------|----------------
--  std_logic_vector | to_hex_str | to_int_str  | to_oct_str |  to_bin_str
--  std_logic        |    N/A     |    N/A      |    N/A     |  to_bin_str
--  natural          | to_hex_str | to_int_str  | to_oct_str |  to_bin_str
--  -----------------|------------|-------------|------------|----------------
-- 
--------------------------------------------------------------------------------

PACKAGE conversions IS
  
    ----------------------------------------------------------------------------
    -- the conversions in this package are not guaranteed to be synthesizable.
    --
    -- others functions available
    -- fill         creates a variable length string of the fill character
    --
    -- 
    --
    -- input parameters of type natural or integer can be in the form:
    --    normal              -> 8, 99, 4_237
    --    base#value#         -> 2#0101#, 16#fa4C#,  8#6_734#
    --    with exponents(x10) -> 8e4, 16#2e#E4
    --
    -- input parameters of type string can be in the form:
    --    "99", "4_237", "0101", "1010_1010"
    --
    -- for bit/bit_vector <-> std_logic/std_logic_vector conversions use 
    --   package std_logic_1164
    --     to_bit(std_logic)
    --     to_bitvector(std_logic_vector)
    --     to_stdlogic(bit)
    --     to_stdlogicvector(bit_vector)
    --
    -- for "synthesizable" signed/unsigned/std_logic_vector/integer
    -- conversions use
    --   package std_logic_arith 
    --     conv_integer(signed/unsigned)
    --     conv_unsigned(integer/signed,size)
    --     conv_signed(integer/unsigned,size)
    --     conv_std_logic_vector(integer/signed/unsigned,size)
    --
    -- for "synthesizable" std_logic_vector -> integer conversions use
    --   package std_logic_unsigned/std_logic_signed
    --            <these packages are mutually exclusive>
    --     conv_integer(std_logic_vector)
    --            <except for this conversion, these packages are unnecessary)
    --     to minimize compile problems write:
    --       use std_logic_unsigned.conv_integer;
    --       use std_logic_signed.conv_integer;
    --
    -- std_logic_vector, signed and unsigned types are "closely related"
    -- no type conversion functions are needed, use type casting or qualified
    -- expressions
    --
    --   type1(object of type2)          <type casting>
    --   type1'(expression of type2)     <qualified expression>
    --
    -- most conversions have 4 parmeters:
    --   x         : value to be converted 
    --   rtn_len   : size of the return value
    --   justify   : justify value 'left' or 'right', default is right
    --   basespec  : print the base of the value - 'yes'/'no', default is yes
    --
    -- Typical ways to call these functions:
    --     simple, all defaults used
    --     to_bin_str(x)
    --         x will be converted to a string of minimum size with a 
    --           base specification appended for clarity
    --         if x is 10101 then return is b"10101" 
    --
    --   to control size of return string
    --     to_hex_str(x,                
    --                6)                
    --         length of string returned will be 6 characters
    --         value will be right justified in the field  
    --         if x is 10101 then return is ....h"15"
    --          where '.' represents a blank 
    --          if 'rtn_len' parm defaults or is set to 0 then
    --           return string will always be minimum size
    --
    --   to left justify and suppress base specification
    --     to_int_str(x,
    --                6,
    --                justify => left, 
    --                basespec => yes)
    --         length of return string will be 6 characters
    --         the base specification will be suppressed
    --         if x is 10101 then return is 21.... 
    --           where '.' represents a blank 
    --
    -- other usage notes
    --
    --   if rtn_len less than or equal to x'length then ignore 
    --      rtn_len and return string of x'length
    --   the 'justify' parm is effectively ignored in this case
    --
    --   if rtn_len greater than x'length then return string 
    --      of rtn_len with blanks based on 'justify' parm
    --
    -- these routines do not handle negative numbers
    ----------------------------------------------------------------------------

    type justify_side is (left, right);
    type b_spec       is (no  , yes);

    -- std_logic_vector to binary string
    function to_bin_str(x          : std_logic_vector;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;

    -- std_logic to binary string
    function to_bin_str(x          : std_logic;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes)
      return string;

    -- natural to binary string
    function to_bin_str(x          : natural;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;
      -- see note above regarding possible formats for x

    -- std_logic_vector to hex string
    function to_hex_str(x          : std_logic_vector;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;

    -- natural to hex string
    function to_hex_str(x          : natural;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;
      -- see note above regarding possible formats for x

    -- std_logic_vector to octal string
    function to_oct_str(x          : std_logic_vector;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;

    -- natural to octal string
    function to_oct_str(x          : natural;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;
      -- see note above regarding possible formats for x

    -- natural to integer string
    function to_int_str(x          : natural;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;
      -- see note above regarding possible formats for x

    -- std_logic_vector to integer string
    function to_int_str(x          : std_logic_vector;
                        rtn_len    : natural      := 0;
                        justify    : justify_side := right;
                        basespec   : b_spec       := yes) 
      return string;

    -- time to string
    function to_time_str (x          : time) 
      return string;

    -- add characters to a string
    function fill        (fill_char  : character    := '*';
                          rtn_len    : integer      := 1) 
      return string;
      -- usage:
        -- fill
          -- returns *
        -- fill(' ',10)    
          -- returns ..........  when '.' represents a blank
        -- fill(lf) or fill(ht)  
          -- returns line feed character or tab character respectively

    -- std_logic_vector to natural
    function to_nat      (x        : std_logic_vector) 
      return natural;

    -- std_logic to natural
    function to_nat      (x        : std_logic) 
      return natural;

    -- time to natural
    function to_nat      (x        : time) 
      return natural;

    -- hex string to std_logic_vector
    function h         (x          : string;
                        rtn_len    : positive range 1 to 32 := 32)
      return std_logic_vector;
    -- if rtn_len is < than x'length*4, result will be truncated on the left
    -- if x is other than characters 0 to 9 or a,A to f,F 
    --   or x,X,z,Z,u,U,-,w,W, result will be 0

    -- decimal string to std_logic_vector
    function d         (x          : string;
                        rtn_len    : positive range 1 to 32 := 32)
      return std_logic_vector;
    -- if rtn_len is < than x'length*4, result will be truncated on the left
    -- if x is other than characters 0 to 9 or x,X,z,Z,u,U,-,w,W,
    --   result will be 0

    -- octal string to std_logic_vector
    function o         (x          : string;
                        rtn_len    : positive range 1 to 32 := 32)
      return std_logic_vector;
    -- if rtn_len is < than x'length*4, result will be truncated on the left
    -- if x is other than characters 0 to 7 or x,X,z,Z,u,U,-,w,W,
    --   result will be 0

    -- binary string to std_logic_vector
    function b         (x          : string;
                        rtn_len    : positive range 1 to 32 := 32)
      return std_logic_vector;
    -- if rtn_len is < than x'length*4, result will be truncated on the left
    -- if x is other than characters 0 to 1 or x,X,z,Z,u,U,-,w,W, 
    --   result will be 0

    -- hex string to natural
    function h         (x          : string)
      return natural;
    -- if x is other than characters 0 to 9 or a,A to f,F, result will be 0

    -- decimal string to natural
    function d         (x          : string)
      return natural;
    -- if x is other than characters 0 to 9, result will be 0

    -- octal string to natural
    function o         (x          : string)
      return natural;
    -- if x is other than characters 0 to 7, result will be 0

    -- binary string to natural
    function b         (x          : string)
      return natural;
    -- if x is other than characters 0 to 1, result will be 0

    -- natural to std_logic_vector
    function to_slv    (x          : natural;
                        rtn_len    : positive range 1 to 32 := 32) 
      return std_logic_vector;
      -- if rtn_len is < than sizeof(x), result will be truncated on the left
      -- see note above regarding possible formats for x

    -- natural to std_logic
    function to_sl     (x          : natural) 
      return std_logic;

    -- natural to time
    function to_time   (x          : natural)
      return time;
      -- see note above regarding possible formats for x

END conversions;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产日韩av| 亚洲色图制服诱惑| 美女视频黄 久久| 日韩欧美综合在线| 日韩专区中文字幕一区二区| 欧美一区二区成人| 国产在线国偷精品产拍免费yy| 国产日韩三级在线| 99热99精品| 天使萌一区二区三区免费观看| 欧美一区二区成人| 国产麻豆成人精品| 亚洲乱码日产精品bd| 制服丝袜日韩国产| 国产乱码精品一区二区三区忘忧草| 中文字幕久久午夜不卡| 91福利社在线观看| 久久99深爱久久99精品| 国产精品久久久一本精品 | 狠狠色丁香婷综合久久| 欧美激情在线观看视频免费| 色婷婷国产精品| 琪琪久久久久日韩精品| 欧美极品xxx| 欧美高清视频在线高清观看mv色露露十八| 日精品一区二区| 国产蜜臀97一区二区三区 | 国产精品亚洲专一区二区三区| 亚洲欧美自拍偷拍色图| 日韩一二三四区| bt欧美亚洲午夜电影天堂| 首页国产欧美久久| 国产精品久久久久天堂| 91精品国产综合久久婷婷香蕉 | 欧美一级视频精品观看| 99久久99久久精品国产片果冻 | 国产精品亚洲专一区二区三区 | 久久综合九色综合97婷婷女人 | 不卡一区二区三区四区| 蜜桃久久精品一区二区| 中文字幕色av一区二区三区| 日韩一区二区不卡| 91国偷自产一区二区开放时间 | 美日韩一区二区三区| 亚洲色图欧洲色图| 久久精品一级爱片| 欧美日韩精品高清| 99视频精品在线| 国产一区免费电影| 蜜臀av性久久久久蜜臀aⅴ流畅| 亚洲少妇最新在线视频| 国产亚洲欧美日韩日本| 91精品国产手机| 91成人在线观看喷潮| av亚洲精华国产精华精华| 国产在线精品一区二区三区不卡| 天天爽夜夜爽夜夜爽精品视频| 自拍偷自拍亚洲精品播放| 国产视频一区不卡| 日韩精品一区二区三区在线观看| 欧洲视频一区二区| 91免费看视频| www.欧美精品一二区| 岛国一区二区三区| 国产久卡久卡久卡久卡视频精品| 青青草精品视频| 欧美a一区二区| 亚洲成人中文在线| 亚洲午夜成aⅴ人片| 亚洲一区视频在线| 夜夜操天天操亚洲| 亚洲国产日韩综合久久精品| 一区二区三区四区高清精品免费观看| 国产精品人妖ts系列视频| 中文字幕av一区二区三区高| 国产欧美一区二区三区鸳鸯浴| 精品噜噜噜噜久久久久久久久试看| 欧美一级久久久| 日韩视频免费观看高清完整版| 欧美一卡二卡三卡四卡| 777午夜精品免费视频| 欧美精品xxxxbbbb| 91精品欧美福利在线观看| 欧美一区二区三区视频免费| 日韩一区二区在线看片| 欧美一二三四在线| 亚洲精品一线二线三线| 国产欧美日韩久久| 亚洲免费高清视频在线| 亚洲国产精品一区二区久久恐怖片 | 国产精品一区二区三区乱码| 国产精品18久久久久久久网站| 国产福利电影一区二区三区| 成人一区二区三区视频| 色狠狠综合天天综合综合| 在线亚洲欧美专区二区| 5月丁香婷婷综合| 久久色在线观看| 国产精品另类一区| 亚洲福利一二三区| 麻豆专区一区二区三区四区五区| 激情都市一区二区| av毛片久久久久**hd| 欧美体内she精视频| 欧美成人女星排名| 欧美极品美女视频| 亚洲愉拍自拍另类高清精品| 男男gaygay亚洲| 国产成人精品免费| 在线观看国产91| 久久综合999| 亚洲综合网站在线观看| 老司机精品视频线观看86 | 91免费观看国产| 欧美肥妇毛茸茸| 国产欧美精品一区二区色综合| 亚洲视频一二三| 麻豆国产欧美一区二区三区| 成人av网站在线观看| 欧美丰满少妇xxxxx高潮对白| 久久久久亚洲蜜桃| 一区二区高清视频在线观看| 麻豆国产欧美一区二区三区| 99免费精品视频| 精品少妇一区二区三区| 亚洲欧美日韩系列| 九九视频精品免费| 在线免费观看一区| 国产欧美日韩在线视频| 午夜欧美电影在线观看| 成人自拍视频在线| 91精品国产综合久久久蜜臀粉嫩 | 亚洲国产一区二区a毛片| 国产成人综合亚洲91猫咪| 欧美视频一区二区三区在线观看| 久久久精品免费观看| 午夜精品久久久久久久蜜桃app| 成人福利视频网站| 精品国产一区二区三区不卡 | 亚洲久草在线视频| 国产乱一区二区| 欧美一区二视频| 亚洲精品高清在线观看| 成人免费的视频| 久久久影院官网| 麻豆成人久久精品二区三区红 | 国产亚洲精品bt天堂精选| 偷拍与自拍一区| 欧美亚洲禁片免费| 国产精品家庭影院| 成人黄色片在线观看| 国产亚洲成年网址在线观看| 日日欢夜夜爽一区| 欧美三级一区二区| 亚洲激情综合网| 日本大香伊一区二区三区| 国产精品乱人伦中文| 粉嫩aⅴ一区二区三区四区五区| 久久综合九色综合97婷婷 | 日韩电影在线免费观看| 欧美伊人久久久久久久久影院| 亚洲欧洲制服丝袜| 91香蕉视频mp4| 中文字幕制服丝袜一区二区三区| 国产精品99久久久久久有的能看 | 欧美精品在线视频| 亚洲va在线va天堂| 欧美视频日韩视频在线观看| 亚洲午夜久久久久| 欧美精品色综合| 日本欧美韩国一区三区| 日韩三级中文字幕| 国产一区二区三区四区在线观看| 久久久久久一二三区| 国产69精品一区二区亚洲孕妇| 国产欧美日韩一区二区三区在线观看| 国产91在线|亚洲| 中文字幕中文字幕在线一区| 色综合一区二区| 亚洲国产aⅴ成人精品无吗| 欧美日韩国产一区| 另类中文字幕网| 国产欧美精品在线观看| 91在线观看地址| 亚洲国产cao| 欧美大片日本大片免费观看| 国产一区二区三区四区五区入口| 国产女人aaa级久久久级| av电影天堂一区二区在线观看| 亚洲欧美电影一区二区| 欧美人狂配大交3d怪物一区| 麻豆免费看一区二区三区| 国产亚洲综合av| 在线免费观看日本一区| 日本欧美一区二区三区| 中文字幕精品—区二区四季| 欧美在线三级电影| 久久超级碰视频| 亚洲欧洲av在线| 欧美男人的天堂一二区|