CPE344 - Digital System Design - Assignment-3
CPE344 - Digital System Design - Assignment-3
Question # 1: (PLO3-CLO2-C5)
(a) Convert the following C-like code to a high-level state machine. Ignore overflow.
(c) Optimize the combinational logic of controller by using state encoding technique. Compare
the logic size (number of gate inputs) and the delay (number of gate delays) of a minimum binary
encoding, with your selected state encoding technique.
(d) Redesign your datapath to allow for concurrency in which two comparisons, two additions,
and two multiplications can be performed concurrently.
(e) Redesign the datapath and controller designed in (b) by allowing up to nine concurrent
additions and inserting pipeline registers, updating the controller as necessary. Assuming a
comparator has a delay of 4 ns, an adder has a delay of 2 ns, and a multiplier has a delay of 20 ns,
how long will the circuit take to finish its computation?
(f) Compare the logic size (number of gate inputs) and the delay (number of gate delays) of your
designs. You are free to choose any optimization technique and any type of datapath components.
Discuss the tradeoffs of your designs.