付费下载
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Assignment1. Design an 8-bit upand downsynchronouscounter inVHDLwith thefollowing(1) The same portsAssignment1. Design an 8-bit upand downsynchronouscounter inVHDLwith thefollowing(1) The same ports are used for signals to be inputted and outputted. The ports are bi-directionally buffered (three-s(2
2、) The counter is with an asynchronous t assigns a specific initial value (3) The counter is synchronous data load control input for a new value of and an enable control input for allowing the up and down counting. The load input has a priority over the enable control input. This t when the operation
3、 isin sthe counter operationis(4) Some ypes, such as STD_LOGIC, UNSIGNED, SIGNED EGER, may Synthesize the design. Create a set of reasonable input waveforms for your design completeboth behavioral t-place&routesimulationsernalsignalsand/orincluded in waveformorlist 1、题目使用VHDL-所inout 8 bit reset 端口、l
4、oad 端口,load 先级比enable即 counterenable8 bit 8bit2、程序2、程序library use use entitycounter_bidirport inininstd_logic; up_down: instd_logic; incnt_inout: inoutstd_logic_vector(7downtoend architectureBehavioralofcounter_bidirsignalcnt_in: std_logic_vector(7downtosignalcnt_out:std_logic_vector(7downto0); 3、Te
5、st -signaloe:3、Test -signaloe:std_logic:=0; signalload:std_logic :=load0,cnt_inout 为输出enable=currenttime:400ns wait for 300 ns;load=-当 t_inout作为输入时(把 t_inoutcnt_incnt为高阻状态-否则,即cnt_inout作为输出时(把 t_out(即计数器计数输出值)-end s(load,cnt_out,cnt_inout) if (load=1) cnt_inoutZ); cnt_in = cnt_inout;cnt_inout=cnt_ou
6、t; end if;end -counter_control: s(clk,-当复位信号rst=1,cnt_out否则在时钟的上升沿检测 t_inout-当作为输入时load=1 ), 把cnt_in中的数取进来-end s(clk,rst) if (rst = 1)cnt_out0);elsif rising_edge(clk)if (load = 1) thencnt_out = cnt_in; elsif(enable=1) thenif (up_down = 0) then cnt_out=cnt_out+1;cnt_out=cnt_out-1; end if;endif; end if;end 4功能仿真(前仿4功能仿真(前仿真根据TestBench进入程序之后,首先复位,这时cnt_out 0 4 之后,把 cnt_inout 变成了输入信号,并且给其赋了10000011;在load 加载该值之后,200ns 之后将cnt_inoutcnt_inout131100ns129(时50 ns),然后遇到了up_down=0,开始做递增。5、ISim 时序仿真(后仿真在ISE Prope PropertiesFPGA,仿真器(Simulator)选择为“ISim在仿真(Simulation)下拉列表中,选择在ISim在后仿真的波形中,可以看到输出(输入)信号cnt
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年设备监理师职业资格考试试题与答案
- 2026年道路运输企业安全生产管理人员复审考试及考试题库及答案
- 妇女节主题知识竞赛题目及答案
- 网络预约出租汽车驾驶员从业资格连云港市区域科目考试题库
- 个人试用期转正工作总结
- 促销人员转正工作总结
- 福建省福州市台江区九校2025-2026学年高二下学期期中考试地理试题
- 2025-2026学年北师大版数学八年级下册期末重难点突破训练(六大板块)
- 2025年建筑行业区块链技术应用场景探索
- 2025-2026学年新疆维吾尔自治区克孜勒苏柯尔克孜自治州高三第一次调研测试历史试卷含解析
- 2026年山东省济南槐荫区九年级中考物理二模考试试题(含答案)
- 铁路专用线维护保养方案
- 2026-2030中国压缩空气储能行业竞争格局与投资可行性战略规划研究报告
- 2026中国移动通信集团海南有限公司第一期社会招聘3人笔试备考试题及答案解析
- 2026贵州省住房资金管理中心招聘工作人员1人笔试参考题库及答案解析
- 【《自动避障扫地机器人设计》11000字(论文)】
- 资金确权协议书
- 2026届江苏省南京市高三二模英语试题(含答案和音频)
- 2026版公司安全生产管理制度及文件汇编
- 解读2025新版职业病分类和目录12大类135种
- 2026天津市津鉴检测技术发展有限公司社会招聘工作人员3人考试模拟试题及答案解析
评论
0/150
提交评论