Fibonacci

Design a sequential circuit that generates the Fibonacci series. The circuit will represent the numbers with nn bits and will generate the Fibonacci numbers 𝑚𝑜𝑑 2n\textit{mod~} 2^n. At each cycle, a new number must be generated. The following waveform illustrates the behavior of the circuit.

image

The circuit must be designed to represent the numbers with 6 bits.

Specification

module fibonacci(clk, rst, fib);
    input clk, rst;
    output [5:0] fib;

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:21:49.531Z

© Jutge.org, 2006–2026.
https://jutge.org