找回密码
 注册
关于网站域名变更的通知
查看: 480|回复: 1
打印 上一主题 下一主题

VHDL流水灯设计

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2019-3-11 11:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
VHDL流水灯设计
' r# l& U  n+ n2 T. o1 O

" t- T% D- Q0 G! Q' i  Y, {2 f3 x! ^
library ieee;
3 }6 Y* S# p; C% |- buse ieee.std_logic_1164.all;
2 u# k- [4 L$ d) C: U8 Huse ieee.std_logic_unsigned.all;
1 ?- s7 ^5 F5 Kuse ieee.std_logic_arith.all;" g' H) M3 y# G6 w3 [+ f
entity liushui is- D! B, A/ Q2 l/ s8 d  P
port(
3 D9 ~: S' e  z; }$ y: M# \clk:IN std_logic;
4 O. y- k6 }( C. _4 Mclr:IN std_logic;# N1 ~) T) {9 ~* z( s8 l5 B
ena:IN std_logic;
) {" d4 m; L) O7 \yut std_logic_vector (7 downto 0) );( h4 |2 j2 E7 A" v, L$ X
end;( M! T) ~- n9 a( s, D' V
architecture behave of liushui is
5 d' w9 |, l1 E& U1 M% E' L* V/ L4 W! bbegin
' Q) f0 x. P- l$ U! R# w2 J, Isignal y_out:std_logic_vector(7 downto 0); process(clk,clr,ena) if clr = '0' then y_out<= "00000001"; elsif clk'event and clk = '1' then if ena = '1' then y_out <= y_out<<1; end if; end if;end process; y <= y_out; end behave;
0 i0 S" s3 ?8 r  Z* Z- K' T

( d9 v; J& f" U& Z- m4 D9 i6 t: d% l
6 x& [+ O( r2 L( s/ L5 y

& y+ q+ |2 l7 B. E) ]0 g  g3 e5 Z0 A
* p3 n! w) O) `4 v9 `

5 X8 W& |3 t; t8 Q+ n% U! q" J

该用户从未签到

2#
发表于 2019-3-11 15:10 | 只看该作者
这就去看看可行吗
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-10-8 12:05 , Processed in 0.125000 second(s), 23 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表