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

📄 colsel_g.vhd

📁 led 点阵显示led——rom实现
💻 VHD
字号:
---design to genarate column selection signals

library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity colsel_g is
  port(
       clk,rst: in std_logic;
       colselout: out std_logic_vector(3 downto 0)       
       );
end colsel_g;

architecture a of colsel_g is
begin
  process(clk)
  variable temp: std_logic_vector(3 downto 0);
  begin
    if rst='1' then
      temp:="0000";
    elsif clk'event and clk='1' then
      if temp="1111" then 
        temp:="0000";
      else
        temp:=temp+1;
      end if;
    end if;
    colselout<=temp;
  end process;
end a;

⌨️ 快捷键说明

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