Final Exam Sample
Final Exam Sample
I2CA
Fall Semester, 2023-2024
Grades:
Max - 40 points
Min – 21 points
a) 1 point
Gate 1 2 3 4 5 6 7
c.e(g)
Cin(1)
Cin(2)
Cin(3)
b) Define the cost and the depth of the circuit. 1 points
2. Design a decade counter which counts in the following sequence using D flip-flops: 010, 101,
100, 011, 111, 110, 010… 6 points
a) Create the graph 1 point
b) Create the next state table 1 point
A+=A’BC’+AB’C+A’BC+ABC=AC+BC+A’B
B+=AB’C’+A’BC+ABC+ABC’=BC+AC’+ AB
C+=A’BC’+AB’C’+A’BC=A’B+AB’C’
a) Translate each of them in DLX assembler and write the comments. 10 points
b) Define the type of each instruction 5 points
1. R-type
2. R-type
3. I-type
4. R-type
5. I-type
c) Use the pipeline mode and draw the scheme for each instruction 3 poits
d) Find the hazards; 3 points
Hazard will be occurs on the second cycle, because S21 register is the operand and it will take the wrong
data from destination register of first instruction.
The hazard type is RAW, read after write, because the second instruction reads $S21, before the first
instruction writes it, so the second instruction incorrectly gets the old value