Materials on the Exam Introduction Data Representation in Computer Systems Boolean Algebra Digital Logic MARIE: An Introduction to a Simple Computer Until first of Page 193.
Introduction Please go through the chapter’s one slide
Data Representation in Computer Systems This is Chapter 2 Concentrate on solving all the examples
Signed Binary Numbers Although there is only one way to represent +9, there are three different ways to represent (-9) In signed-magnitude representation In signed-1’sComplement representation In signed-2’sComplement representation
In signed-magnitude representation The Addition of two numbers in the signed- magnitude system follows the rules of ordinary arithmetic sign. If the signs are the same, we add the two magnitudes and give the sum the common sign. If the signs are different, we subtract the smaller magnitude from the larger and give the result the sign of the larger magnitude
One’s Complement To understand the Ones Complement Mathematics, you should solve the examples on page 53
Two Complement Solve the examples on page 55,56 Important Rule on page 55 in Bold sentence. To understand this rule, please go through a table on page 63 table 2.2. very important
T/F question Typical T/F question in the exam as follows When a carry occurs during the arithmetic operation this means an overflow is occurred T/F Adding +4 to +6 in four bit binary system will result in overflow T/F 3 bits for magnitude and 1 bit for sign this result in overflow and the result is error To answer this question you have to know the rules for overflow
Floating Point Representation 14 bit model See page 63,64,65 The idea of adding Floating point is the same idea in normal mathematics (unify the exponent)
Boolean Algebra It’s all about AND, OR, Not You should know the truth table for them page 111 You have to know that before designing a circuit you have to make mathematical model for it. As your model is simple, your circuit will be simple also and less cost
Figure Simple Model Floating-Point Representation Boolean Algebra To simplify the models (Boolean Algebra) Use the table 3.5 page 113 Study the examples on page 114,115 See the logic gates symbols at page 119 You can design simple circuits as in page 120 You should know XOR exclusive, you have to make a truth table
XOR Gate
Boolean Algebra Study the pages of 124,125
Designing a Circuit The first point for designing a digital circuit are Describe your input, all combinations Determine the out put, could be one ore more Then construct the truth table Simplify the output using algebra simplification (this step is only to simplify the design)
Binary n-to-2 n Decoders A binary decoder has n inputs and 2 n outputs. Only one output is active at any one time, corresponding to the input value
2-to-4 Binary Decoder A 2 to 4 decoder consists of two inputs and four outputs, truth table and symbols of which is shown below
2-to-4 Binary Decoder Truth Table2 to 4 decoder
2-to-4 Binary Decoder
Q28 Find Truth Table
Flip-Flops All the digital circuits we studied in the past are called combinational circuits, the following circuits are called sequential circuits and they used a lock to operate. And they consider the main unit of memory design.
Flip-Flops SR-flip flop on page 133
Figure a) Actual SR Flip-Flop b) Characteristic Table for the SR Flip-Flop See Characteristic table figure 3.21 (b) page 133 SR-flip flip
Figure a) D Flip-Flop b) D Flip-Flop Characteristic Table c) D Flip-Flop as a Modified SR Flip-Flop D-flip flop
Figure a) JK Flip-Flop b) JK Characteristic Table c) JK Flip-Flop as a Modified SR Flip-Flop JK flip-flop
Mealy Model Mealy machine’s outputs are a function of it’s current state and it’s input We will see an example on D flip flop
Analyze this sircuit
The Solution First we have to write the equations 1.A(t+1)=Ax+BX 2.B(t+1)=A`x 3.Y=(A+B)X Second :draw the state table base on the equations you have
State Table
Second Form of state table
State Diagram
Q41 Complete the truth table
Q41 complete the truth table ABXA(t+1)B(t+1) 000?? 001?? 010?? 011?? 100?? 101?? 110?? 111??
Q41 /solution JA=(A+X)` =A`X` ;;;; KA=JA B=AB` ABXJAKAD
Q41 solution ABXJAKADA(t+1)B(t+1)