




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Embedded System Architecture Design-Timing and AddersJun WANG1OutlineTimingCritical pathGlitchAdderHFAFARCACLA2Delay between input change and output changingHow to build fast circuits?Timing3 Critical (Long) Path: tpd = 2tpd_AND + tpd_OR Short Path: tcd = tcd_ANDCritical (Long) & Short Paths4When a
2、single input change causes multiple output changesGlitches5What happens when A = 0, C = 1, B falls?Glitch Example6Glitch Example (cont.)7Fixing the Glitch8Glitches dont cause problems because of synchronous design conventions (see Chapter 3)Its important to recognize a glitch: in simulations or on o
3、scilloscopeCant get rid of all glitches simultaneous transitions on multiple inputs can also cause glitchesWhy Understand Glitches?91-Bit Adders10LabsLab 2ComparatorLab 3 4-bits Mux1-Bit Adders121-Bit Adders13Chain 1-bit adders togetherCarry ripples through entire chainDisadvantage: slowRipple-Carry
4、 Adder14tripple = NtFA where tFA is the delay of a full adderIs it too LONG?Ripple-Carry Adder Delay15verilog1 bit FA ( with RTL description )module FA( input a, b, cin output cout, sum ); / HDL modeling of 1 bit / full adder functionality 。/ complete themendmodule4 bit FA ( with structural descript
5、ion )module adder( input3:0 A, B, output cout, output3:0 S ); wirec0, c1, c2; FA fa0(A0, B0, 1b0, c0, S0 ); FA fa1( . ); /complete themFA fa2( . ); FA fa3( . );endmoduleHow is behavioral description?16SchematicSchematicCritical path17Ripple-carry (RCA)(slow)Carry-lookahead (CLA)(fast)Study for your
6、homework MUST DO, as you will use it in lab session next weekCarry-lookahead adder faster for large adders but require more hardware Types of Adders 18Compute carry out (Cout) for k-bit blocks using generate and propagate signalsSome definitions:Column i produces a carry out by either generating a c
7、arry out or propagating a carry in to the carry outGenerate (Gi) and propagate (Pi) signals for each column:Column i will generate a carry out if Ai AND Bi are both 1. Gi = Ai BiColumn i will propagate a carry in to the carry out if Ai OR Bi is 1.Pi = Ai + BiThe carry out of column i (Ci) is: Ci = A
8、i Bi + (Ai + Bi )Ci-1 = Gi + Pi Ci-1Carry-Lookahead Adder19Step 1: Compute Gi and Pi for all columns Step 2: Compute G and P for k-bit blocksStep 3: Cin propagates through each k-bit propagate/generate blockCarry-Lookahead Addition20Example: 4-bit blocks (G3:0 and P3:0) : G3:0 = G3 + P3 (G2 + P2 (G1
9、 + P1G0 ) P3:0 = P3P2 P1P0C3 = G3:0 + P3:0 C-1Generally, Gi:j = Gi + Pi (Gi-1 + Pi-1 (Gi-2 + Pi-2Gj ) Pi:j = PiPi-1 Pi-2PjCi = Gi:j + Pi:j Cj-1Carry-Lookahead Adder2132-bit CLA with 4-bit Blocks22SummaryAlways/Initial () vs assignProcedural assignment vs continuous assignment wire vs regwire used only in assign, synthesized as combinational circuit (net)reg used only in always, synthesized as combinational circuit (net), in (a or b)Sequential circuit (register), in (clk) = vs =Block assignment vs No-block assig
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 游泳救生员职业安全知识题目及答案
- 2024年模具设计师资格考试详细考纲试题及答案
- 2024年体育经纪人考试模拟题回顾试题及答案
- 项目管理考试中的最佳实践与个案研究分享试题及答案
- 理财师的资格与认证要求2025年国际金融理财师考试试题及答案
- 项目管理考试中的常见陷阱试题及答案
- 模具维护常识试题及答案
- 农作物种子繁育员面临的挑战及解决方案试题及答案
- 2024年游泳救生员考试的挑战试题及答案
- 2024年度裁判员考试的考试内容试题及答案
- 《民航重大安全隐患判定标准(2024 年修订版)》知识培训
- 2024年保安员资格考试初级理论知识试题库【模拟题】
- 浙江国企招聘2025上半年湖州市交通投资集团有限公司招聘11人笔试参考题库附带答案详解
- 《教育系统重大事故隐患判定指南》解读
- 2025年安徽省示范高中皖北协作区第27届联考物理+答案
- 灌溉排水工程项目可行性研究报告编制
- 公益发展面试题及答案
- 解读2024 ESC急性肺血栓栓塞症诊断治疗指南
- 2025年郑州铁路职业技术学院单招职业适应性测试题库审定版
- 《中国书法发展史》课件
- 加油站安全隐患规范依据查询手册
评论
0/150
提交评论