Question: 3 . An Iterative Function Oops ! . . . I Did It Again [ 4 0 points ] Consider the iterative function f (
An Iterative Function Oops I Did It Again points
Consider the iterative function
fx a x b
where a and b are fixed bit constants, and x is an bit register that is iteratively
updated according to
xnext a xcurrent b
Example Iteration
Suppose a b Start with an initial bit value x Then the iteration
proceeds as follows in decimal just for illustration:
x
x
x
x
x
x
x
x
x
x
x
xbut in bit arithmetic, this wraps around!
so
x
Once we reach values beyond the representable range of bits, the arithmetic wraps
around ie it is computed modulo Therefore, repeated iteration can generate
interesting results. In this particular example, the value x becomes a fixed point
because further updates do not change x
Problem
You have two bit constant inputs a a a and b b b and an bit
variable register x x x that you load externally. The goal is to iteratively
compute
x a x b
on each clock cycle. If and when the circuit reaches a fixed point ie xnext xcurrent
it should set a Done signal to and place the final x value on an bit output Z
In your design, you can use the following blocks without specifying their internal
structure: D flipflops, multiplexers, adder circuits, and a comparator circuit from
Homework Specify everything else.
EE Fall
a Multiplier Units. points
Explain how to implement an bit unsigned multiplier for the product ax
You may choose a simple shiftandadd design or a similar approach.
bbit Iterative Update Unit.
Design a combinational block that produces the new value of xnext a
xcurrent b from the present xcurrent.
This block will contain an bit multiplier for a x and an bit adder for
adding b
The output is an bit result xnext.
c Load Control.
Use an bit register X to store the current x as well as two bit registers
for a and b
Show how X a and b are loaded when Load is
d Iteration Control.
On each clock cycle with Load X is loaded with xnext.
e Stop Control.
Show how Done is set to when xnext xcurrent ie the iteration has reached
a fixed point
For a problem like this, you must explain and annotate your circuit schematics, as well
as your simulation results. The grading will be somewhat subjective. If the grader
cannot understand your schematics or annotations, you will not get full points, even
if you can argue afterwards that the circuit works.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
