index.vhd
来自「实现二进制长串的算术右移的操作。希望有点参考价值。可以直接运行」· VHDL 代码 · 共 19 行
VHD
19 行
library ieee;
library work;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
use work.p_index.all;
entity index is
generic(width :integer :=10);
port(data: in std_logic_vector(width-1 downto 0);
q: out std_logic_vector(width-1 downto 0));
end index;
architecture rtl of index is
begin
q<=Delta(data,p);
end rtl;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?