

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Consider the following sequence of numbers:
0 , 1 , 1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , ..., (1)
By carefully inspecting the above sequence, we can note that each number is the sum of its two immediate predecessors. More formally, a F ibonacci number Fn is generated by the simple rule:
Fn =
0 if n = 0 1 if n = 1 Fn− 1 + Fn− 2 otherwise In this lab, you are asked to implement in hardware a Fibonacci function that, given a number n, returns the Fibonacci number Fn. The input signals are:
The output signals are:
[1] P. Chu, RTL Hardware Design Using VHDL, Chapter 11, pp. 373-420,