Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started