



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this exam paper are: Active Low, Transparent Latches, Latch and Mux, Seven Counter, External Clear, External Count Enable, Basic Gates, Karnaugh Map, Mixed Logic Notation, Program Fragment
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!




5 problems, 7 pages Final Exam 10 June 1999
Name (print) _____________________________________________________
1 2 3 4 5 total
5 problems, 7 pages Final Exam 10 June 1999
Problem 1 (2 parts, 20 points) Two by Two
Part A (10 points) Design a toggle cell using only two transparent latches, two 2-to-1 muxes, and an inverter. Use icons for the latch and mux. Your toggle cell should have an active high toggle enable input TE , and an active low clear input -Clear , clock inputs Φ 1 and Φ 2 , and an output Out. The - Clear signal has precedence over TE. Label all signals.
Part B (10 points) Now combine three of these toggle cells to build a divide by seven counter. Your counter should have an external clear, external count enable, and three count outputs O 2 , O 1 , O 0. Use any basic gates (AND, OR, NAND, NOR, & NOT) you require. Assume clock inputs to the toggle cells are already connected.
Problem 2 (3 parts, 28 points) Switch Design
5 problems, 7 pages Final Exam 10 June 1999
Problem 3 (3 parts, 26 points) Switch Design
Consider the following MIPS program fragment. The attached sheet lists the instruction set.
address label instruction 1000 start: addi $1, $0, 100 1004 lw $2, 0($1) 1008 addi $1, $1, 4 1012 loop: lw $4, 0($1) 1016 slt $3, $4, $ 1020 bne $3, $0, skip 1024 add $2, $0, $ 1028 skip1: addi $1, $1, 4 1032 slti $3, $1, 200 1036 bne $3, $0, loop
Part A (10 points) How many times is the loop body in this program fragment executed?
number of loop iterations:
Part B (8 points) After this fragment completes, which register (computed by this fragment) is most likely to be used elsewhere in the program that calls this fragment?
most likely shared register:
Part C (8 points) What does this program fragment accomplish?
move from Hi mfhi $1 $1 = Hi
5 problems, 7 pages Final Exam 10 June 1999
Problem 5 (3 parts, 25 points) Short Answer
Answer the following questions concisely and legibly.
Part A (8 points) An instruction in a non-pipelined multi-cycle MIPS implementation requires fewer cycles to complete (average instruction latency) that a pipelined MIPS implementation. Why do pipelined implementations execute programs in less time?
Part B (10 points) Moore’s Law suggests that computer performance (measured in instructions per second) doubles approximately every two years. Using this heuristic, if a 1980 computer delivered one million instructions per second (MIPS), what year would we expect a one trillion operation per second machine? (trillion is a million millions.) What year (in the past) should we have had a one instruction per second machine?
year of trillion instruction per second
year of one instruction per second
Part C (7 points) What physical parameter is being forecast to replace average delay through a gate as the limiting factor in the performance of future digital computers? (This factor was discussed in class.)