完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
|
相关推荐
3个回答
|
|
LIBRARY IEEE ;
USE IEEE.std_logic_1164.all ; USE IEEE.numeric_std.all ; USE IEEE.std_logic_unsigned.all ; library work ; entity Gpio_inout is port ( GpioIN: in Std_Logic; --in ----------------out--------------------- GpioOUT1: out std_logic; --out GpioOUT2: out std_logic; GpioOUT3: out std_logic; ); end Gpio_inout; architecture structure of Gpio_inout is signal GpioOUT1: Std_Logic; -- signal GpioOUT2: Std_Logic; -- signal GpioOUT3: Std_Logic; -- begin -- process 0 -- generate process (nReset,OSC_24576) begin if GpioIN = '0' then GpioOUT1 <= '0'; GpioOUT2 <= '0'; GpioOUT3 <= '0'; end if ; end process ; ------------------------out-------------------- GpioOUT1 <= GpioIN ; GpioOUT2 <= GpioIN ; GpioOUT3 <= GpioIN ; end structure; |
|
|
|
LIBRARY IEEE ;
USE IEEE.std_logic_1164.all ; USE IEEE.numeric_std.all ; USE IEEE.std_logic_unsigned.all ; library work ; entity Gpio_inout is port ( GpioIN: in Std_Logic; --in ----------------out--------------------- GpioOUT1: out std_logic; --out GpioOUT2: out std_logic; GpioOUT3: out std_logic; ); end Gpio_inout; architecture structure of Gpio_inout is signal GpioOUT1: Std_Logic; -- signal GpioOUT2: Std_Logic; -- signal GpioOUT3: Std_Logic; -- begin -- process 0 -- generate process (nReset,OSC_24576) begin if GpioIN = '0' then GpioOUT1 <= '0'; GpioOUT2 <= '0'; GpioOUT3 <= '0'; end if ; end process ; ------------------------out-------------------- GpioOUT1 <= GpioIN ; GpioOUT2 <= GpioIN ; GpioOUT3 <= GpioIN ; end structure; |
|
|
|
LIBRARY IEEE ;
USE IEEE.std_logic_1164.all ; USE IEEE.numeric_std.all ; USE IEEE.std_logic_unsigned.all ; library work ; entity Gpio_inout is port ( GpioIN: in Std_Logic; --in ----------------out--------------------- GpioOUT1: out std_logic; --out GpioOUT2: out std_logic; GpioOUT3: out std_logic; ); end Gpio_inout; architecture structure of Gpio_inout is signal GpioOUT1: Std_Logic; -- signal GpioOUT2: Std_Logic; -- signal GpioOUT3: Std_Logic; -- begin -- process 0 -- generate process (nReset,OSC_24576) begin if GpioIN = '0' then GpioOUT1 <= '0'; GpioOUT2 <= '0'; GpioOUT3 <= '0'; end if ; end process ; ------------------------out-------------------- GpioOUT1 <= GpioIN ; GpioOUT2 <= GpioIN ; GpioOUT3 <= GpioIN ; end structure; |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1673 浏览 1 评论
1428 浏览 0 评论
矩阵4x4个按键,如何把识别结果按编号01-16(十进制)显示在两个七段数码管上?
1644 浏览 0 评论
941 浏览 0 评论
2433 浏览 0 评论
1499 浏览 38 评论
5698 浏览 113 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-29 04:39 , Processed in 0.625054 second(s), Total 73, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号