没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
试读
3页
100进位 VHDL 测试通过 library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_unsigned.ALL; entity cuont is Port ( clk : in STD_LOGIC; rst : in STD_LOGIC; y : out STD_LOGIC_VECTOR (7 downto 0)); end cuont;
资源推荐
资源详情
资源评论
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_unsigned.ALL;
entity cuont is
Port ( clk : in STD_LOGIC;
rst : in STD_LOGIC;
y : out STD_LOGIC_VECTOR (7 downto 0));
end cuont;
architecture Behavioral of cuont is
signal y1: std_logic_vector (7 downto 0);
begin
process(clk,rst)
begin
if(rst='0') then
y1 <="01011001";
elsif (clk'event and clk ='1') then
if(y1(7 downto 0) ="00000000") then
y1 <="01011001";
elsif(y1(3 downto 0)="0000") then
y1 <= y1-7;
else y1 <= y1-1;
end if;
end if;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_unsigned.ALL;
entity cuont is
Port ( clk : in STD_LOGIC;
rst : in STD_LOGIC;
y : out STD_LOGIC_VECTOR (7 downto 0));
end cuont;
architecture Behavioral of cuont is
signal y1: std_logic_vector (7 downto 0);
begin
process(clk,rst)
begin
if(rst='0') then
y1 <="01011001";
elsif (clk'event and clk ='1') then
if(y1(7 downto 0) ="00000000") then
y1 <="01011001";
elsif(y1(3 downto 0)="0000") then
y1 <= y1-7;
else y1 <= y1-1;
end if;
end if;
资源评论
xiaohehe和
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功