Fibonacci circuit help

Thread Starter

Uyet123

Joined Jan 25, 2015
29
HI, I am doing an ASM for a fibonacci sequence, but I am getting this error from logisim. Can someone help me fix this, I have been trying to for hours already but no success.New_Picture_2_.jpg
 

Thread Starter

Uyet123

Joined Jan 25, 2015
29
Nevermind, I got it working. I have to display the digits on a 7 segment display, I am thinking of using binary to bcd, but how do I start on it? Do I make a state table first?
 

MrAl

Joined Jun 17, 2014
7,954
Hi,

How many digits do you have to show?
If it is a small amount then logic works ok, but if you need like 6 digits probably do it in code. There's an algorithm on the web called something like "double dabble" which i have used several times and it doesnt take up a huge amount of memory space.
Example:
0000 0000 1111 start with 0,0,15
0000 0111 1000 shift left 3 times
0000 0011 1000 add 3 to center group
0000 1010 1000 result
0001 0101 0000 shift left 1 time, result is 1,5,0 which is read "15" in bcd.
There is a little more to it so you'll have to read up on it.
 
Last edited:
Top