Question: PROBLEM 3 ( 2 5 PTS ) Fibonacci numbers Computation: We want to design a circuit that reads an unsigned number ( > 1 )
PROBLEM PTS
Fibonacci numbers Computation: We want to design a circuit that reads an unsigned number and generates :
To compute in an iterative fashion, we can use:
n: unsigned integer F F
if n
for i to n
Fi Fi Fi
end end
return Fn
Operation: The circuit reads n when the s signal usually a oneclock cycle is asserted. When the result is ready, the
signal done is asserted.
Input: s start signal n input data
Outputs: Fn result done.
Clock frequency: MHz
We restrict the bitwidth of Fn to bits. As a result, the largest n would be
Sketch the circuit: FSM in ASM form Datapath components. Specify all the IOs of the FSM as well as the signals
connecting the FSM and the Datapath components as in Problem
Suggestion: Use two registers for and initialized with and iterations start at At every
iteration is computed, and then the registers parametric register with enable: myrege are updated:
Register : It captures the computed
Register : It captures
Feel free to use any other standard component eg: register, counter, comparator, adder, busmux
The iteration index can be implemented with a standard counter mygenpulsesclr Here, you can only initialize the
count to To ensure that iterations start at you can include more states to increase the count
To simplify the design, you can assume that
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
