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

📄 vhdl code1.bak

📁 d flip flop t flip flop counter mux using active hdl can be run using 3.2 version and creating new d
💻 BAK
字号:
-- This is the VHDL code for the counter example from _The VHDL
-- Cookbook_ by Peter Ashenden.  The propogation delay has been removed.

entity count2 is
  port (clock : in bit; q1, q0 : out bit);
end count2;


architecture behaviour of count2 is
begin
  count_up: process (clock)
    variable count_value : natural := 0;
  begin
    if (clock = '1') then
      count_value := (count_value + 1) mod 4;
      q0 <= bit'val(count_value mod 2);
      q1 <= bit'val(count_value / 2);
    end if;
  end process count_up;
end behaviour;

⌨️ 快捷键说明

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