Docsity

Assignment 1 - Computer Architecture, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
EE5123 (Spring 2021) – HW #1 – Due 11:59pm 2/2/2021
1. (30 pts) Assume that you are considering enhancing a machine by adding a special
feature to it. The percentage of time (the original run time before the feature is added)
that the machine can be run using this new feature is denote as p%, and, during this
portion of time, the machine with this new feature runs f% faster than the old one
without it.
(a) Determine the overall speedup for each of the following:
i. f= 50, p= 80
ii. f= 100, p= 60
iii. f= 200, p= 40
iv. f= 300, p= 20
(b) Draw a graph that plots together each of the two speedup functions for f= 100
and f= 300 in terms of pwith pranging from 0 to 100 (y-axis being the speedup
and x-axis being p).
2. (20 pts) Redo problem 1(a) if pis defined as percentage of time that the machine runs
using the special feature but instead measured against the new overall time when the
special feature is used.
3. (30 pts) Similar to the memory example given in the class, answer each of the following
questions.
(a) Clearly draw a memory chip of size 512 ×8 and the associated decoder inside it,
with all address bus and data bus (with bus width) clearly depicted.
(b) how many such memory chips are needed to compose a memory of 2k×32? Draw a
block diagram of these chips with all vital bus and wires and additional necessary
logic specified.
4. (25 pts) Provide a design of the sequential circuit for the vending machine controller –
one product sells for
$
0.35, and the machine takes only quarters (input Q) and dimes
(input D) with an output signal Ifor product release and a few necessary output
signals for change release (if there is change to return), for example, C5for a 5-cent
change, C15 for a 15-cent change, etc.. No other signals are used.
(a) Show the complete state transition table.
(b) How many flip-flops are needed? Draw a block diagram of the circuit showing the
key blocks, signals and wires.
(c) How many K-maps are needed to derive the complete circuit? Why?
5. (15 pts) Determine the 8-bit representation of each of the following numbers under
two’s complement format, and provide an evaluation of the number using the weight
system to verify the result.:
(a) 105
(b) -97
(c) -6.4 (4-bit integer and 4-bit fraction with truncation)

Partial preview of the text

Download Assignment 1 - Computer Architecture and more Assignments Computer Architecture and Organization in PDF only on Docsity!

EE5123 (Spring 2021) – HW #1 – Due 11:59pm 2/2/

  1. (30 pts) Assume that you are considering enhancing a machine by adding a special feature to it. The percentage of time (the original run time before the feature is added) that the machine can be run using this new feature is denote as p%, and, during this portion of time, the machine with this new feature runs f % faster than the old one without it.

(a) Determine the overall speedup for each of the following: i. f = 50, p = 80 ii. f = 100, p = 60 iii. f = 200, p = 40 iv. f = 300, p = 20 (b) Draw a graph that plots together each of the two speedup functions for f = 100 and f = 300 in terms of p with p ranging from 0 to 100 (y-axis being the speedup and x-axis being p).

  1. (20 pts) Redo problem 1(a) if p is defined as percentage of time that the machine runs using the special feature but instead measured against the new overall time when the special feature is used.
  2. (30 pts) Similar to the memory example given in the class, answer each of the following questions.

(a) Clearly draw a memory chip of size 512 × 8 and the associated decoder inside it, with all address bus and data bus (with bus width) clearly depicted. (b) how many such memory chips are needed to compose a memory of 2k×32? Draw a block diagram of these chips with all vital bus and wires and additional necessary logic specified.

  1. (25 pts) Provide a design of the sequential circuit for the vending machine controller – one product sells for $0.35, and the machine takes only quarters (input Q) and dimes (input D) with an output signal I for product release and a few necessary output signals for change release (if there is change to return), for example, C 5 for a 5-cent change, C 15 for a 15-cent change, etc.. No other signals are used.

(a) Show the complete state transition table. (b) How many flip-flops are needed? Draw a block diagram of the circuit showing the key blocks, signals and wires. (c) How many K-maps are needed to derive the complete circuit? Why?

  1. (15 pts) Determine the 8-bit representation of each of the following numbers under two’s complement format, and provide an evaluation of the number using the weight system to verify the result.:

(a) 105 (b) - (c) -6.4 (4-bit integer and 4-bit fraction with truncation)