Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Digital Logic & Sequential Circuits: Hamming Distance, Error Detection, Karnaugh Maps, & S, Exams of Computer Architecture and Organization

Various topics in digital logic and sequential circuits, including hamming distance calculation, error detection codes, ripple carry adders, karnaugh maps, and sequential machines. Students will learn how to find the hamming distance between binary patterns, understand the difference between mealy and moore models, and implement sequential machines using rs-ff, jk-ff, and toggle-ff. They will also learn how to draw state transition diagrams and minimize the number of states.

Typology: Exams

Pre 2010

Uploaded on 07/31/2009

koofers-user-9ig
koofers-user-9ig 🇺🇸

10 documents

1 / 7

Toggle sidebar

Related documents


Partial preview of the text

Download Digital Logic & Sequential Circuits: Hamming Distance, Error Detection, Karnaugh Maps, & S and more Exams Computer Architecture and Organization in PDF only on Docsity! 1. (1pts) What is the Hamming distance between these two bit patterns: 1101 and 0100? 2. (3pts) How far apart must valid code words be to allow Single Error Detection (SED)? Quadruple Error Correction (QEC)? Quintuple (5) Error Correction Sextuple (6) Error Detection (QECSED)? 3. (3pts) Write the equation for the carry out of the 4th adder cell in an ALU using carry- lookahead, in terms of P’s and G’s. 4. (3pts) What is the difference between the Mealy and Moore models of sequential design? 5. (3pts) What is the difference between Sequential and Combinational Logic? 6. (2pts) What is a Karnaugh Map? 7. (6pts) We know that a single cell of a ripple carry adder implements the functions Cout = AB+ACin+BCin and Sum = A xor B xor Cin Assuming you have made a 4-bit ripple carry adder using these cells, what is the worst case path through the adder? In other words, how long does it take for the answer to be correct in all cases? (I suggest you draw the circuit in order to make doing this problem easier). Use the following delay values, and assume all input signals become valid at time 0: 2-input AND: 6 ns 2-input OR: 5 ns 2-input XOR: 9 ns 3-input AND: 8 ns 3-input OR: 6 ns 3-input XOR: 12 ns 8. (9 pts) Assume you have 8-bit data words, and your memory system supports Single Error Correction. For each of the following patterns recieved from memory identify and correct any errors that may have occurred during transmission or storage. Assume the same organ- ization of carry and data bits as we used in class. The first one is done for you. Given: 0 0 1 0 1 1 0 1 0 1 1 1 The Data Word is: 00101011 Given: 0 0 1 1 1 0 0 1 1 0 0 0 The Data Word is: 11. (20 pts) Given the following Karnaugh maps, implement the sequential machine using an RS FF for Y1, a JK FF for Y2, and a Toggle FF for Y3. You do not need to draw the gates, but you do need to write down minimized input equations for each of the inputs of each of the Flip Flops in the circuit. 1 11 1 1 1 Y3 X Y1 Y2 1 1 11 d d 1 1 1 Y3 X Y1 Y2 1 1 1 1d d d Y1’ Y2’ 1 1 1 1 1 1 1 1 Y3 X Y1 Y2 Y3’ X Y1 Y3 X Y1 Y2 X Y1 Y2 Y3 Y2 Y3 X Y1 Y3 X Y1 Y2 X Y1 Y2 Y3 Y2 Y3 12. (20 pts) Freedonia now wants a fancy new electronic lock for their treasury. The lock has two buttons, and the combination should be Left Right Right Left. Only one button can be pressed at a time. Let X1=Left Button and X2=Right Button. Z=1 indicates the lock should be opened, Z=0 signals lock closed. Draw the State Transistion Diagram (the circles and the arcs) for this finite state machine. Let S0=no buttons pressed (the Start state). Once you have a state transition diagram, minimize the number of states necessary and then assign bit patterns to each state and write down the corresponding state transition table. Assume you are using a Mealy model. Label the transitions on the diagram using the following format: Z X 1 X 2  So, for example, 0 0 1  would be used to indicate that the Right Button was pressed, and the output at that point should be a 0 (lock closed).
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved