Hello
I have to make the logisim circuit of the Fibonacci sequence on 8 bits. My knowledge is limited on the components I can use. I was thinking of using a clock, registers, a 7 segments display, an adder and a reset. I understand the principle of the Fibonacci sequence but I can't translate it into a logic circuit....
Some indications ?
I have done this in Bsim :
LD(a,R1)
LD(b,R2)
LD(n,R4)
loop:
ADD(R1,R2,R3)
MOVE(R2,R1)
MOVE(R3,R2)
SUBC(R4,1,R4)
test:
CMPLT(R31,R4,R5) // If (R31 < R4) Then R5 <- 1 Else R5 <- 0
BT(R5,loop) // If R5 != 0 Then GoTo loop
ST(R3,c)
HALT()
a: LONG(0)
b: LONG(1)
c: LONG(0)
n: LONG(5)
Thanks
I have to make the logisim circuit of the Fibonacci sequence on 8 bits. My knowledge is limited on the components I can use. I was thinking of using a clock, registers, a 7 segments display, an adder and a reset. I understand the principle of the Fibonacci sequence but I can't translate it into a logic circuit....
Some indications ?
I have done this in Bsim :
LD(a,R1)
LD(b,R2)
LD(n,R4)
loop:
ADD(R1,R2,R3)
MOVE(R2,R1)
MOVE(R3,R2)
SUBC(R4,1,R4)
test:
CMPLT(R31,R4,R5) // If (R31 < R4) Then R5 <- 1 Else R5 <- 0
BT(R5,loop) // If R5 != 0 Then GoTo loop
ST(R3,c)
HALT()
a: LONG(0)
b: LONG(1)
c: LONG(0)
n: LONG(5)
Thanks
Last edited: