第七章SEQUENTIAL LOGIC DESIGN PRINCIPLE(2014)—part 1——廖昌俊
- 格式:ppt
- 大小:1.21 MB
- 文档页数:35
Course Design for Computer Organization and Design4th EditionIntroductionThe course design for Computer Organization and Design (COD) 4th edition is designed to provide students with an understanding of the fundamental principles of computer organization and design. The course is divided into three mn units: the first unit covers the basic principles of digital logic and circuit design, the second unit covers the architecture and organization of computer systems, and the third unit covers advanced topics such as parallel processing and memory hierarchies.Course ObjectivesUpon completion of the course, students will be able to: - Understand the basic principles of digital logic and circuit design, including boolean algebra, gates, and flip-flops - Understand the architecture and organization of basic computer systems, including the CPU, memory, and I/O devices - Design and implement basic digital circuits using logic gates and flip-flops - Understand the purpose and function of assembly language and machine language, including instruction sets, memory addressing modes, and CPU operations - Understand the basic principles of pipelining and parallel processing, including pipelined CPU design and parallel processing architectures - Understand the principles of memory hierarchies and caching, including the function and organization of cache memoryCourse Outline•Unit 1: Digital Logic and Circuit Design–Introduction to digital logic–Boolean algebra and logic gates–Flip-flops and sequential circuits–Design of basic digital circuits•Unit 2: Computer System Organization and Architecture–Introduction to computer system organization–CPU organization and instruction sets–Memory organization and addressing modes–Input/output (I/O) devices and interfaces–Assembly language programming and machine language •Unit 3: Advanced Topics in Computer Organization and Design –Pipelining and parallel processing–Cache memory and memory hierarchies–Advanced CPU design and architectures–High-performance computer systemsCourse Delivery and AssessmentThe course will be delivered through a combination of lectures, tutorials, and laboratory work. There will be a mid-term exam and afinal exam as well as regular assessments throughout the course. The lab work will be designed to provide hands-on experience with digitalcircuit design, CPU design, and assembly language programming.ConclusionThe design of the COD 4th edition course is intended to provide a strong foundation in the principles of computer organization and design. By the end of the course, students will have gned the skills necessary to design and implement basic digital circuits and understand the architecture and organization of computer systems. With the rapid changes and developments in computer hardware, it is essential for students to have a solid understanding of the fundamental principles underlying computer systems.。
119E X E R C I S E S O L U T I O N S SequentialLogic Design Principles77.27.3The latch oscillates if S and R are negated simultaneously. Many simulator programs will exhibit this same behavior when confronted with such input waveforms.S R Q QNS R QQN120DIGITAL CIRCUITS7.57.8Just tie the J and K inputs together and use as the D input. 7.9Excitation and output equations:Excitation/transition table; state/output table:7.15Excitation equations:Excitation/transition table; state table:7.18Excitation and output equations:QNQ Q QTEN J K CLKD1Q1′Q2+=D2Q2′X ⋅=Z Q1Q2′+=ENQ1Q201001011011010100001111010Q1*Q2*ENS1ZA C D 1BC C 0C A B 1DCC1S*D2Q (1Q0)Q1′Q2′⋅()⊕⊕=D1Q2=D0Q1=Q2Q1Q0Q2*Q1*Q0*000100001000010101011001100010101110110111111011S S*A E B A C F D B E C F G G H HDJ0K0EN ==J1K1Q0EN ⋅==MAX EN Q1Q0⋅⋅=EXERCISE SOLUTIONS 121Note that the characteristic equation for a J-K flip-flop is . Thus, we obtain the following transition equations:Transition/output table; state/output table:State diagram:Timing diagram:7.20This can be done algebraically. If all of the input combinations are covered, the logical sum of the expressionson all the transitions leaving a state must be 1. If the sum is not 1, it is 0 for all input combinations that are uncovered. For double-covered input combinations, we look at all possible pairs of transitions leaving a state.The product of a pair of transition equations is 1 for any double-covered input combinations.(a)State D , Y = 0 is uncovered.(b)State A , (X+Z ′) = 0 is uncovered. State B , W = 1 is double-covered; (W+X ) = 0 is uncovered. State C ,(W+X+Y+Z ) = 0 is uncovered; (W ⋅X + W ⋅Y + Z ⋅Y + Z ⋅X ) = 1 is double covered. State D , (X ⋅Y + ⋅X ′⋅Z + W ⋅Z ) = 0is uncovered; (W ⋅X ′⋅Z + W ⋅X ⋅Y ⋅Z ) = 1 is double-covered;Q ∗J Q ′⋅K ′Q ⋅+=Q0∗EN ′Q0⋅EN Q0′⋅+=Q1∗EN ′Q1⋅EN Q0⋅Q1′⋅EN Q0′Q1⋅⋅++=ENQ1Q2010000,001,00101,010,01010,011,01111,000,1Q1*Q2*, MAXENS1A A,0B,0B B,0C,0C C,0D,0DD,0A,1S*, MAXAENEN ENEN ′EN ′EN ′EN ′ENBCDCLK EN Q0Q1MAX122DIGITAL CIRCUITS7.21Table 9–4 on page 804 shows an output-coded state assignment. Here is a corresponding transition list:The excitation equations and circuit diagram follow directly from this transition list.7.25The minimum setup time is the clock period times the duty cycle. That is, the minimum setup time is the timethat the clock is 1.7.27As shown in Section 7.9.1, the excitation equation for the latch of Figure 7–72 is Below, we analyze Figure X7.27 in the same way:The feedback equation isThe feedback equations are the same, and so the circuits have identical steady-state behavior.The circuit in Figure X7.27 is better in two ways. It uses one less gate, and it has one less load on the D input. 7.29The AND gate in the original circuit is replaced with a NAND gate. As a result, the second flip-flop stores theopposite of the value stored in the original circuit; to compensate, swap connections to its Q and QN outputs.SL3Z L2Z L1Z R1Z R2Z R3ZTransition expression S*L3Z *L2Z *L1Z *R1Z *R2Z *R3Z *IDLE 000000(LEFT + RIGHT + HAZ)′IDLE 000000IDLE 000000LEFT ⋅HAZ ′⋅RIGHT ′L1001000IDLE 000000HAZ + LEFT ⋅RIGHT LR3111111IDLE 000000RIGHT ⋅HAZ ′⋅LEFT ′R1000100L1001000HAZ ′L2011000L1001000HAZ LR3111111L2011000HAZ ′L3111000L2011000HAZ LR3111111L31110001IDLE 000000R1000100HAZ ′R2000110R1000100HAZ LR3111111R2000110HAZ ′R3000111R2000110HAZ LR3111111R30001111IDLE 000000LR31111111IDLEY ∗C D ⋅C ′Y ⋅D Y⋅++=D C(C ⋅ D)′((C ⋅ D)′ ⋅ C) + Y ′C ⋅D + (((C ⋅ D)′ ⋅ C) + Y ′)′((C ⋅ D)′ ⋅ C)′QQNY ∗YY ∗C D ⋅C D ⋅()′C ⋅()Y ′+()′+=C D ⋅()C D ⋅()′C ⋅()′Y ⋅+=C D ⋅C D ⋅()(C ′)Y ⋅++=C D ⋅D C ′+()Y ⋅+=C D ⋅D Y ⋅C ′Y⋅++=EXERCISE SOLUTIONS 123The OR gates in the original circuit are also replaced with NAND gates. As a result, each input must be con-nected to a signal of the opposite polarity as before, that is, to the complementary flip-flop output. In the case of connections to the second flip-flop, we swapped outputs twice, so the connections remain the same.The final circuit below uses three 2-input NAND gates.7.45 A transition table corresponding to the state table is shown below:This table leads to the following Karnaugh maps for the excitation logic, assuming a “minimal cost” treatment of unused states.A BQ2Q1Q000011110Z0000010010100100001011011010010001000100110010000110110111100101100001101100100110101101111001011100011011001001Q2*Q1*Q0*D Q Q CLK D QQCLK XZCLK000111100001111000011110A BQ1 Q200011110A B A BA B A BA B A BA B A BABA BA BQ1Q2Q0=0Q1 Q2Q1Q2Q0=1100001111000011110Q1 Q200011110Q1Q2Q0=0Q1 Q2Q1Q2Q0=1000111100001111000011110Q1 Q200011110Q1Q2Q0=0Q1 Q2Q1Q2Q0=1D0D1D21100110011001100001100000000000011000000111111111111000001000010d d d d d d d d d d d d 0000011011101111111A ′0011Q1′⋅ Q2′ ⋅ A Q0Q0′ ⋅ Q1 ⋅ B 01Q0′ ⋅ Q2 ⋅ AQ0′ ⋅ Q1 ⋅ AQ1 ⋅ A ⋅ BQ2 ⋅ A ⋅ B124DIGITAL CIRCUITSThe resulting excitation equations areIgnoring inverters, a circuit realization with the new equations requires one 2-input gate, six 3-input gates, and one 5-input gate. This is more expensive than Figure 7–54, by four gates.7.49The new state assignment yields the followingtransition/excitation table and Karnaugh maps:This yields the following excitation equations:Compared with the results of original state assigment, these equations require two more 3-input AND gates,plus a 6-input OR gate inplace of a 4-input one. However, if we are not restricted to a sum-of-products realiza-tion, using the fact that might make this realization less expensive when discrete gates are used.D0A ′=D1Q1′Q2′⋅A ⋅Q0+=D2Q2A ⋅B ⋅Q0′Q2⋅A ⋅Q0′Q1⋅A ⋅Q1A ⋅B ⋅Q0′Q1⋅B⋅++++=X YQ1Q000011110Z0000011101 1 010******** 11111000100 1010000100Q2*Q1*or D1D20001100001111000011110X YQ1 Q200011110X YQ1Q2D1X YQ1 Q2X Q1Q2D21110101100000101010110101010010111Y Q1 ⋅ Q2′ ⋅ X ′Q1 ⋅ Q2′ ⋅ Y ′Q1′ ⋅ Q2 ⋅ Y Q1′ ⋅ X ⋅ YQ2 ⋅ X ′ ⋅ Y ′Q2 ⋅ X ⋅ YQ2′ ⋅ X ′ ⋅ Y Q2′ ⋅ X ⋅ Y ′Q1 ⋅ X ′ ⋅ Y ′Q1′ ⋅ Q2 ⋅ XD1Q1′Q2X ⋅⋅Q1′Q2Y ⋅⋅Q1′X Y ⋅⋅Q1Q2′X ′⋅⋅Q1Q2′Y ′⋅⋅Q1X ′Y ′⋅⋅+++++=D2Q2X Y ⋅⋅Q2′X Y ′⋅⋅Q2′X ′Y Q2X ′Y ′⋅⋅+⋅⋅++=D2Q2X Y ⊕⊕=EXERCISE SOLUTIONS 1257.57Here is the transition list:The transition/excitation and output equations below follow directly from the transition list.Starting from the IDLE state, the following transitions may be observed:For each input combination, the machine goes to the R1 state, because R1’s encoding is the logical OR of the encodings of the two or three next states that are specified by the ambiguous state diagram.SQ2Q1Q0Transition expressionS*Q2*Q1*Q0*IDLE000(LEFT+RIGHT+HAZ)′IDLE 000IDLE000LEFT L1001IDLE000HAZ LR3100IDLE 000RIGHTR1101L10011L2011L20111L3010L30101IDLE 000R1 1011R2111R2 1111R3110R31101IDLE 000LR311IDLESQ2Q1Q0LEFTRIGHTHAZQ2*Q1*Q0*S*IDLE000101101R1IDLE 000 011101R1IDLE 000 110101R1IDLE11111R1D2Q2∗Q2′Q1′Q0′HAZ ⋅⋅⋅== Q2′Q1′Q0′RIGHT⋅⋅⋅+ Q2Q1′Q0⋅⋅+ Q2Q1Q0⋅⋅+Q2′Q1′Q0′HAZ RIGHT +()⋅⋅⋅Q2Q0⋅+=D1Q1∗Q2′Q1′Q0⋅⋅== Q2′Q1Q0⋅⋅+ Q2Q1′Q0⋅⋅+ Q2Q1Q0⋅⋅+Q0=D0Q0∗Q2′Q1′Q0′LEFT⋅⋅⋅== Q2′Q1′Q0′RIGHT ⋅⋅⋅+ Q2′Q1′Q0⋅⋅+ Q2Q1′Q0⋅⋅+Q2′Q1′Q0′LEFT RIGHT +()⋅⋅⋅Q1′Q0⋅+=126DIGITAL CIRCUITSThe behavior aboveis not so good and is a result of synthesis choices—state encoding and logic synthesis method. If a different state encoding were used for R1, or if a different synthesis method were used (e.g., prod-uct-of-s-terms), then the results could be different. For example, starting with the transition list given earlier,we can obtain the following set of transition equations using the product-of-s-terms method:These equations yield the following transitions:This is obviously different and still not particularly good behavior.7.58Let E(SB), E(SC), and E(SD) be the binary encodings of states SB , SC , and SD respectively. Then, the bit-by-bit logical OR of E(SB) and E(SC). This is true because the synthesis method uses the logical OR of the next values for each state variable and, by extension, the logical OR of the encoded states.SQ2Q1Q0LEFTRIGHTHAZQ2*Q1*Q0*S*IDLE 000 000000IDLE IDLE 000 011100LR3IDLE 000 110001L1IDLE111IDLED2Q2∗Q2Q1Q0LEFT RIGHT HAZ +++++()== Q2Q1Q0LEFT ′+++()⋅ Q2Q1Q0′++()⋅ Q2Q1′Q0′++()⋅ Q2Q1′Q0++()⋅ Q2′Q1′Q0++()⋅ Q2′Q1Q0++()⋅Q2Q1RIGHT HAZ +++()Q2Q1LEFT ′++()Q2Q0′+()Q1′Q0+()Q2′Q0+()⋅⋅⋅⋅=D1Q1∗Q2Q1Q0LEFT RIGHT HAZ +++++()== Q2Q1Q0LEFT ′+++()⋅ Q2Q1Q0HAZ ′+++()⋅ Q2Q1Q0RIGHT ′+++()⋅ Q2Q1′Q0++()⋅ Q2′Q1′Q0++()⋅ Q2′Q1Q0++()⋅Q2Q1Q0++()Q1′Q0+()Q2′Q0+()⋅⋅=D0Q0∗Q2Q1Q0LEFT RIGHT HAZ +++++()== Q2Q1Q0HAZ ′+++()⋅ Q2Q1′Q0′++()⋅ Q2Q1′Q0++()⋅ Q2′Q1′Q0′++()⋅ Q2′Q1′Q0++()⋅ Q2′Q1Q0++()⋅Q2Q0LEFT RIGHT +++()Q2Q0HAZ ′++()Q1′()Q2′Q0+()⋅⋅⋅=E SD ()E SB ()E SC ()+=EXERCISE SOLUTIONS 1277.68As far as I know, I was the first person to propose BUT -flops, and Glenn Trewitt was the first person to analyzethem, in 1982. To analyze, we break the feedback loops as shown in the figure to the right.The excitation and output equations areThe corresponding transition/state table isThe two stable total states are circled. Notice that state 00 is unreachable.When X1 X2 = 00 or 11, the circuit generally goes to stable state 11, with Q1 Q2 = 11. The apparent oscillation between states 01 and 10 when X1 X2 = 11 may not occur in practice, because it contains a critical race that tends to force the circuit into stable state 11.When X1 X2 = 01 or 10, the Q output corresponding to the HIGH input will oscillate, while the other output remains HIGH .Whether this circuit is useful is a matter of opinion.7.71When X =1, the circuit was supposed to “count” through its eight states in Gray-code order. When X =0, itremains in the current state. If this were the case, I suppose it could be used as a 3-bit random number genera-tor. However, I messed up on the logic diagram and the circuit actually does something quite different and completely useless, compared to what I intended when I wrote the problem. Someday I’ll fix this problem.Also, metastability may occur when X is changed from 1 to 0. 7.79Figure X5.59 requires two “hops” for each input change. Figure 7–66 is faster, requiring only one hop for eachinput change. On the other hand, Figure 7–66 cannot be generalized for n >2.7.90Either this exercise is a joke, or a correct answer is much too dangerous to publish. Nevertheless, Earl Levineoffers two possible answers:(Stable output)Was the last answer to this question “yes”?(Oscillating output)Was the last answer to this question “no”?X2X1Q1Q2Y1∗Y2∗Y1Y2Y1X1Y1⋅()X2Y2⋅()′⋅[]′=X1′Y1′X2Y2⋅++=Y2X2Y2⋅()X1Y1⋅()′⋅[]′=X2′Y2′X1Y1⋅++=Q1Y1=Q2Y2=X1X2Y1Y2000111100011111111 0111101011 1111101101 1011110101Y1*Y2*。
Chapter 1: Introduction1.Linguistics:语言学It is generally defined as the scientific study of language.( Linguistics studies not any particular language ,but it studies language in general) 2。
General linguistics:普通语言学The study of language as a whole is called general linguistics.(language is a complicated entity with multiple layers and facets )3。
Language:Language is a system of arbitrary vocal symbols used for human communication.4.descriptive (描述性):A linguistic study aims to describe and analyze the language people actually use.5.prescriptive(规定性):It aims to lay down rules for “correct and standard" behaviors.i。
e。
what they should say and what they should not to say。
6.synchronic(共时语言学): the description of language at some point of time in hiatory7。
diachronic (历时语言学):the description of language as it changes through time 3)speech(口语)Writing(书面语)These the two media of communication。
第7章时序逻辑设计原理Sequential Logic Design Principles7-4S-R Latch, D Latch7.2.2 S-R Latches (S-R锁存器)S_L = R_L = 1Q = last Q, QN = last QNS_L = 1, R_L = 0Q = 0, QN = 1 S_L = 0, R_L = 1Q = 1, QN = 0 S_L = R_L = 0Q = QN =1QQNS_LR_LS R S Q R QLogic Symbol 逻辑符号Function Table (功能表)7.2.3 S-R Latch with Enable (带使能端的S-R锁存器)S RC 0 X X 1 0 01 0 11 1 01 1 1C S RlastQ lastQN lastQ lastQN 0 11 01 1QQNFunction Table 功能表(1). C=0:Q = last Q; QN = last QN (2). C=1:just like S-R latch 当S=R=1时,如果C 从1变到0,则下一状态是不可预期的。
SC RQ QQQNS_LR_LTiming Diagram (定时图)0 X X 1 0 01 0 11 1 01 1 1C S R lastQ lastQN lastQ lastQN 0 11 01 1Q QN QS R C 动作特点:输入信号在时钟(使能端)有效期间,都能直接改变触发器的状态。
7.2.4 D Latches (D锁存器)If D=1, Q = 1C=0, QQNSRDC数据输入端Data input 控制输入端Control inputENABLE CLK 、GQ holds its last value D passes through to QC=1,If D=0, Q = 0Q = DTransparent 透明C D Q QN1 0 0 11 1 1 00 x lastQ lastQN Function Table(功能表)D Latch function description (D锁存器功能描述)D Q C QLogic Symbol逻辑符号Characteristic Equation (特征方程):Q*= D (C=1) C D Q QN 1 0 0 11 1 1 00 x lastQ lastQNFunction Table(功能表)D Latch Timing Parameters (D锁存器定时参数)Q D C tpLH(CQ)tpHL(DQ)tpLH(DQ)tpHL(CQ)在C的下降沿附近有一个时间窗,这段时间内D输入一定不能变化。
12 maximal onset principle states that when there is a choice as to where to place a consonont. it is put into the on set rather than the coda. . The correct syllabification of the word country should be第一章,填空1.The study of the meaning of lingustic words, phrases is callesde mantics・2.Displacement is a design feature of human languoge that enables speakers to talk about a wild range of things free from barriers caused by4.Morpheme is the smallest meaningful unit of language.5.If a linguistic study describes and analyzes the language people actually use, it is said to be descriptive.6.Chomsky defines " competencaes "the ideal user's knowledge of the rules of his Ionguage.nguage is a means of verbal communication. It is informative in that communicating by speaking or writing is a purposeful act.8.The link between a linguistic sign and its meaning is a matter ofnguage is distinguished from traffic lights in that the former has the designing feature of duality.10.In linguistics research, bothq uantity and quality approaches are preferred.半lj 断:丄1・ The writing system of a Ianguage is always a later invention used to record speech, thus there are still many languages in today's have no V12. compentoetn Icime it"ed itso the ability of anideal native speaker to construct and recognize..13.Duality and cultural transmission are two most im porta nt design features of human Ian guage. X14.Chomsky's compete nee' and performance are similar in meaning to Saussure s langue and parole. V15.An important difference between traditional grammarians and modem linguists in their study of language is that the former tended to over-emphasize the written form of language and encourage people to imitate the "bestauthors ” V for languag16・ In modern linguistic studies, the written form of language is given more emphasis than the spoken form for a of reasons. V17.Modern linguistics is mainly diachronic・ x chochronic 共时白勺ngue and parole is the fundamental distinction discussed by Chomsky in his Aspects of the Theory of distinguished the linguistic competence of the speaker and the actual phenomena or data of linguistics as Parole and language V .20. According to Chomsky, the task of a linguist is to determine from the data of performance the underlying system of rules that has been V选择:1.As modern linguistics aims to describe and analyse the language people actually use, and not to lay down rules for correct linguistic behavior, it is said to bed escriptive2.丨can refer to Confucius even though he was dead 2000 years ago. This shows that language has the design feature of displacement.this 3." Don't end a sentence with a prepositio IT4.Which of the following is most referred to as a branch of the study of meaning in5.The synchronic study of language takes a fixed instant as its point of observatiori.6.The branch of linguistics that studies how context influences the way speakers interpret sentences is calledp ragmatics.7.The fact that different Ionguages have different words for the same object is good proof that human language is A 没照下图片arbitrary8.The descriptive of a language as it changes through time is dai achronic study・9.题目没照下来。
本科生课程介绍课程名称中文英文讲课对象适用专业课程简介Introduct ion讲课教师高工课程名称中文英文讲课对象适用专业课程简介计算机辅助设计技术基础教程唐龙等4位清华大学出版Software Engineering Ian Summerville职称副教授使用教材参考书使用教材参考书Software Engineering: Theory and Practice, Shari, Lawrence Pfleeger全校选修+计辅本课程是计算机科学与技术系为全校本科生开设的一门重要的计算机专业基础课,目的是培养学生的软件力。
本课程以软件生命周期的主要活动为主线,从软件及软件工程的历史和发展、软件开发过程、需求分析、软件维护、软件项目管理、标准及规范等方面全面介绍软件工程的基本理论、方法、技术和工具。
书名作者Software Engineering: A Practitioner’s Approach, Roger S. Pressman主要研究领域:小波分析及其应用,科学计算可视化,计算机图形学,。
徐玉华(1)承担全校计算机辅助设计技术基础课教学课号: 00240033 学分: 3 课程属性:全校任选 开课学期: 秋季软件工程 孙延奎重点讲述计算机辅助设计的基础知识,为利用计算机解决本专业及相关领域中的问题打下必要的基课程主要内容包括:计算机辅助设计(CAD )技术的基本概念、原理、算法和软件使用。
具体内容为:CA础,二维变换、二维裁剪、二维图形的光栅显示、曲线曲面、实体造型、三维变换、三维形体的显示AutoCAD、3DSMAX5.0软件的操作方法以及OpenGL图形库的应用。
This course focuses on the basic concepts,principles,algorithms and applicationsdesign(CAD),it mainly consists of the following topics:software and hardware system of Ctransformations,line clipping,raster display of 2D graphics,curves and surfaces,soldimensional transformations,three-dimensional viewing,visible-surface determination,models,and introductions to AutoCAD,3DMAX 5.0and OpenGL.It is an ideal choice for slearn the rudiments of this dynamic and exciting CAD technology.主要教学领域:(1)承担全校计算机辅助设计技术基础课教学;(2)析及其应用课教学;姓 名 主要教学和科研领域(1)计算机图形学基础,清华大学出版社,1995(2)计算机图形学,孙家广,清华大学出版社(第三版),2000年(3)计算机辅助设计技术基础,孙家广,清华大学出版社(第二版),2000年9月(4)计算机辅助设计技术与应用,殷国富,科学出版社,2000年全校本科生理、工科专业课号:00240013 学分: 3 课程属性:全校任选 开课学期:秋、春计算机辅助设计技术基础 Fundamenta 书名作者出讲课教师讲师课程名称中文英文讲课对象课程简介Introduct ion讲课教师本课程为非计算机专业的本科生介绍人工智能的基本原理和方法的入门课程。