-
This program calculates the fibonacci value of a given number recursively.
-
The relevant assembly code for this program is provided in Fibonacci_Recursive_assembly_code text file.
-
The machine code generated for this assembly code is avaiable in the in the Fibonacci_Recursive_machine_code text file.
-
The expected instruction memory for this program is shown in Fibonacci_Recursive_instruction_memory text file. Copy all the content and replace the content in ins_mem_init.txt file.
-
Simulate top_tb.sv.
-
The result of the factorial can be checked by;
- Follow the steps mentioned above in order to add these instructions to the processor instruction memory
- Viewing the x6 of the register file
- 1st location of the data memory (data_mem_final), after the process is over.
-
In order test your own inputs for the factorial;
- Replace the immediate value on line 1 in Fibonacci_Recursive_assembly_code assembly code file.
- Copy the assembly code into test.asm file.
- Run A-to-M.cpp file.
- Copy the machine codes generated in MCode.mc file and paste the relevant lines of ins_mem_init.txt file
Fibonacci_Recursive
Directory actions
More options
Directory actions
More options
Fibonacci_Recursive
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||