完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
如何用VHDL 语言实现右移位啊?求大神帮看看为什么实现不了右移位?
library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_unsigned.all; use ieee.std_logic_arith.all; entity yiwei is port( clk:IN std_logic; y:out std_logic_vector (7 downto 0) ); end yiwei; architecture behave of yiwei is signal q: std_logic_vector(7 downto 0); begin process(clk) begin if clk'event and clk='1' then q<="11110000"; q(3 downto 0) <= q(7 downto 4); q(7 downto 4) <=(others=>q(7)); end if; end process; y<=q; end behave; |
|
相关推荐 |
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
823 浏览 0 评论
国产NSI1300D05-DSWVR放大芯片放大增益8.2或41的问题
873 浏览 0 评论
STM32串口接受中断使用C++STL中的queue导致所有中断失效
8566 浏览 1 评论
3384 浏览 0 评论
STM32配合可编程加密芯片SMEC88ST的防抄板加密方案设计
1379 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-23 22:07 , Processed in 0.461402 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191