vhdl语言,根据给出的异步复位功能的模16加法计数器,写一个带同步复位功能的模10的加法计数器.library ieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entity cnt16 isport(clk,clr :instd_logic;q:buffer std_
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/25 12:31:06
vhdl语言,根据给出的异步复位功能的模16加法计数器,写一个带同步复位功能的模10的加法计数器.library ieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entity cnt16 isport(clk,clr :instd_logic;q:buffer std_
vhdl语言,根据给出的异步复位功能的模16加法计数器,写一个带同步复位功能的模10的加法计数器.
library ieee;
useieee.std_logic_1164.all;
useieee.std_logic_unsigned.all;
entity cnt16 is
port(clk,clr :instd_logic;
q:buffer std_logic_vector(3 downto 0));
end;
architecture one ofcnt16 is
begin
process(clr,clk)
begin
ifclr=’1’ thenq
vhdl语言,根据给出的异步复位功能的模16加法计数器,写一个带同步复位功能的模10的加法计数器.library ieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entity cnt16 isport(clk,clr :instd_logic;q:buffer std_
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
use ieee.std_logic_arith.all;
entity cnt10 is
port(
clk,clr :in std_logic;
q :buffer std_logic_vector(3 downto 0)
);
end;
architecture one of cnt10 is
signal count :integer range 0 to 9:=0;
begin
process(clr,clk)
begin
if(clk'event and clk='1')then
if (clr ='1') then
q