Saintgits College of Engineering (Autonomous)
This project focuses on designing and implementing both slow and fast division algorithms in computer architecture. The goal is to develop algorithms, code them in Verilog or VHDL, and analyze their functionality, performance, and efficiency. The project also involves synthesizing and implementing the designs, comparing them based on area, power, and speed, and drawing conclusions based on the results.
- Digital Design knowledge
- HDL (Verilog or VHDL)
- Basic FPGA (optional) and Signal Processing knowledge
Simulation, Synthesis, and Implementation
4th
A division algorithm is a mathematical process that calculates the quotient and/or remainder of two integers, given a dividend and divisor. For example, if the dividend (a) is 15 and the divisor (b) is 8, the quotient (q) is 1 and the remainder (r) is 7. This project aims to implement both slow and fast division algorithms to perform such calculations efficiently.
- Block Diagram
- Flow Chart
- Algorithm
- Verilog Code & Test Bench
- RTL Simulation
- Functional Simulation
- Pin Planning
- Synthesis
- Analyze Area,Power & Speed
- Apply Timing Constraints
- Implement in Cyclone V FPGA Board - 5CSEMA5F31C6
- Develop Report
- Upload the files on GitHub
- Conclusions
- Video Demo
-
Intel® Quartus® Prime Lite Software and ModelSim Altera for Simulation
For the simulation of the designed algorithms, we utilized the Intel® Quartus® Prime Lite Software along with ModelSim Altera. These tools provided us with the necessary features and functionalities to validate and verify the correctness of our designs. -
LabsLand Online for Virtual Laboratory Setup
To augment our practical learning experience, we leveraged the LabsLand online website for accessing virtual laboratories. This platform facilitated the implementation and testing of our designs in a simulated environment, allowing us to gain hands-on experience and further validate the performance of our algorithms.
-
Functional simulation: To ensure the correctness of our designs, we performed functional simulations using ModelSim Altera. The simulations involved running various test cases and verifying the expected outputs against the implemented algorithms. The functional simulations demonstrated that our designs accurately perform the division operations and produce the expected results.
You can find functional simulation files Here -
RTL simulation: To evaluate the performance and functionality of the implemented designs we conducted RTL Simulation. The simulations were performed using Intel® Quartus® Prime Lite, and they provided insights into the behavior and timing of the designs at the Register Transfer Level (RTL). Through RTL simulations, we verified that our designs met the required specifications and operated as intended..
You can find RTL simulation files Here -
Pin Planning: For our design implementation on the Cyclone V - 5CSEMA5F31C6 FPGA, we carefully assigned the required pins for inputs, outputs, and the clock based on the Cyclone V - 5CSEMA5F31C6 datasheet. The pin assignments were made considering the specific functionality and timing requirements of our designs.
You can find Pin Planning files Here -
Comparision based on their Area, Power, and Speed: After synthesis, we analyzed the synthesized designs to compare their characteristics based on area utilization, power consumption, and operational speed. The synthesis reports provided information on the resources utilized by each design and their corresponding performance metrics. The results of the comparison are as follows:
Slow Division Algorithm Fast Division Algorithm Area Utilization : ALMs 9 out of 32,070 (< 1%) 15 out of 32,070 (< 1%) LABs 2 out of 3,207 (< 1%) 3 out of 3,207 (< 1%) Combinational ALUTs 17 Varies (0 to 28) I/O Pins 20 out of 457 (4%) 16 out of 457 (4%) Power Consumption : Average Toggle Rate 8.428 M transitions/s 0 M transitions/s Total Thermal Power 425.87 mW 420.79 mW Operational Speed : Worst-case Setup Slack 17.173 ns 1.5 ns Worst-case Hold Slack 0.147 ns 0.8 ns Design-wide TNS 0.0 ns -0.2 ns For detailed report check this file : APS Report
The implemented slow and fast division algorithms have been evaluated for their efficiency, performance, and trade-offs. Through detailed analysis and comparison, we have assessed their characteristics in terms of area utilization, power consumption, and operational speed. Based on our findings, we make the following recommendations:
- Advantages:
- The slow division algorithm exhibits low resource utilization, occupying a small portion of available resources.
- It performs division iteratively using traditional techniques, making it relatively straightforward to understand and implement.
- The algorithm provides reasonable timing slack, ensuring proper synchronization in the design.
- Advantages:
- The fast division algorithm showcases optimized calculations and a fixed number of iterations, leading to potentially faster execution time.
- It utilizes a reciprocal approximation approach to perform division more efficiently.
- The algorithm demonstrates low resource utilization, similar to the slow division algorithm.
- The fast division algorithm has a smaller code size, making it more concise and potentially easier to maintain.
- It offers a simpler structure and reduced complexity compared to the slow division algorithm.
- Area Utilization: Both algorithms exhibit low resource utilization, utilizing a small portion of available resources.
- Power Consumption: The slow division algorithm has slightly higher estimated power consumption compared to the fast division algorithm.
- Operational Speed: The operational speed of the fast division algorithm is fast, its optimized calculations and fixed iterations suggest potential faster execution compared to the slow division algorithm.
- Code Size and Complexity: The fast division algorithm has a smaller code size and reduced complexity compared to the slow division algorithm, making it potentially easier to understand and maintain.
- Algorithm Complexity: The slow division algorithm has higher complexity due to its iterative nature and conditional branching, while the fast division algorithm offers a simpler structure and reduced complexity.
For a better understanding of the project, please watch our Video Demo.
Please refer to the project's individual files and directories for detailed information on each aspect, including block diagrams, algorithm descriptions, code files, testbenches, synthesis reports, and the final tabulated results.
Thank you for your interest in our project!