⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 shuma_2jt.vhd

📁 用vhdl做得CPLD静态两位数码管扫描 显示“10”两位数码管公用段选
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity shuma_2jt is
port(data: in std_logic;
out0:out std_logic_vector(7 downto 0);
out1:out std_logic_vector(5 downto 0)
);
end shuma_2jt;
architecture behv of shuma_2jt is
signal cnt0:std_logic_vector(7 downto 0);
signal cnt1:std_logic_vector(5 downto 0);
signal indata:std_logic;
begin
 indata<=data;
 process(indata)
 begin
  cnt0<="00000110";
 case indata is
   when '0'=>cnt1<="000001";cnt0<="00000110";
   when '1'=>cnt1<="000010";cnt0<="00111111";
   when others=>null;
end case;
end process;
    out1<=cnt1;
    out0<=cnt0;
end behv;

⌨️ 快捷键说明

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