📄 last.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity last is
port (xuanzhe:in std_logic;
m1 :in std_logic_vector (17 downto 0);
m2 :in std_logic_vector (41 downto 0);
x : out std_logic_vector(19 downto 0);
m3 :in std_logic);
end last;
ARCHITECTURE ART OF last IS
begin
process(xuanzhe,m3)
begin
if xuanzhe='0' then
x<="00"&m1;
elsif xuanzhe='1' then
if ( m3='1' ) then
x<=m2(19 downto 0)+1;
else
x<=m2(19 downto 0);
end if ;
end if ;
end process;
end art;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -