- 3
- 0
- 约2.32千字
- 约 61页
- 2017-04-21 发布于浙江
- 举报
2.5 VHDL主要描述语句;2.5 VHDL主要描述语句;2.5.1 VHDL顺序语句;1、顺序语句特点;信号赋值语句;信号赋值语句;注意条件互斥性,修改下列程序
IF A=4 THEN
S=1;
END IF;
IF A=5 THEN
S=2;
END IF;;变量赋值语句;流程控制语句;使用IF要点
IF语句可以嵌套
IF语句用于有优先级的条件判断
在进程中使用IF语句描述组合逻辑时,务必覆盖所有情况;否则综合后将引入锁存器。;流程控制语句;流程控制语句;library ieee;
use ieee.std_logic_1164.all;
entity mux4 is
port (a,b,d0,d1,d2,d3: in std_logic;
y: out std_logic);
end mux4;
architecture behav of mux4 is
signal sel: integer range 0 to 3;
begin ;--请用IF语句重新描述4选一的选择器;CASE语句与IF语句比较:
选择器的行为描述可以用IF语句或CASE语句;
IF语句是有优先权的顺序语句,CASE语句中条件句具有相同的优先权(把任意两个换一下位置,结果一样);
CASE语句中的条件必须穷举,不能重复,不
您可能关注的文档
- 王安帮-应用光学 20141210-L12II 像差.ppt
- 王安帮-应用光学 20141224.L13II-L14 光学传递函数.ppt
- 王华昌-CAD技术基础教学 《CAD技术基础》教学大纲.doc
- 王华昌-CAD技术基础教学 《CAD技术基础》教学大纲v2014.doc
- 王华昌-CAD技术基础教学 5-1 cadcam_参数化方法.ppt
- 王华昌-CAD技术基础教学 5-2 cadcam_参数化方法.ppt
- 王华昌-CAD技术基础教学 cad_第三章_几何造型.ppt
- 王华昌-CAD技术基础教学 cad_第三章3.2节_曲线曲面.ppt
- 王华昌-CAD技术基础教学 CAD技术基础_ 第一章概论.ppt
- 王华昌-CAD技术基础教学 第八章-PDM讲义.ppt
- unidir -人工智能与国际安全:理解风险并为建立信任措施铺平道路 AI and International Security - Understanding the Risks and Paving the Path for Confidence-Building Measures.pdf
- unidir -通过负责任行为的规范、规则和原则推进空间安全的非洲视角 African Perspectives for Advancing Space Security Through Norms, Rules and Principles of Responsible Behaviours - Workshop Summary Report.pdf
- wfp -约旦学校供餐计划影响评估 Jordan, School Meal Programme Impact Evaluation.pdf
- wfp -注意差距 莱索托案例研究 Mind the Gap -Lesotho Case Study.pdf
- unesco -数字公共产品与新兴技术促进公平和包容的知识获取 Dubai Declaration on Open Educational Resources (OER) digital public goods and emerging technologies for equitable and inclusive access to knowledge.pdf
- unidir -致命自主武器系统领域新兴技术相关提案 Proposals Related to Emerging Technologies in the Area of Lethal Autonomous Weapons Systems- A Resource Paper (updated).pdf
- who -脊髓灰质炎过渡战略框架:监测与评估 Polio transition strategic framework - Monitoring and evaluation.pdf
- who -高效实用的结核病治疗试验平台会议报告 Platform for efficient and practical tuberculosis treatment trials.pdf
- unesco -国际性教育技术指导纲要:循证方法 International technical guidance on sexuality education - an evidence-informed approach.pdf
- UNIDIR_unidir -涉足浑浊之水:海底通信电缆与负责任的国家行为 Wading Murky Waters - Subsea Communications Cables and Responsible State Behaviour.pdf
原创力文档

文档评论(0)