My implementation of the CORDIC algorithm in RISC-V assembly, a project subject for Computer Architecture Lab, WUT. ๐๐ฅ๏ธ
In this project, you'll find the CORDIC algorithm implemented in Python, C, and RISC-V. ๐๐ป๐ข
The CORDIC (COordinate Rotation DIgital Computer) algorithm is used for various computations including trigonometric functions. ๐งฎ
- Python: A high-level implementation for easy understanding and validation. ๐
- C: A low-level implementation that provides insights into performance optimization. ๐ป
- RISC-V Assembly: A hardware-oriented implementation to demonstrate how the algorithm operates at the assembly level. ๐ ๏ธ
CORDIC-PYTHON/
- Python implementation of the CORDIC algorithm.CORDIC-C/
- C implementation of the CORDIC algorithm.CORDIC-ASM/
- RISC-V assembly implementation of the CORDIC algorithm.
-
Python Implementation:
- Navigate to the
python/
directory and run:python cordic.py
- Navigate to the
-
C Implementation:
- Navigate to the
c/
directory and compile the code:gcc -o CORDIC CORDIC.c
- Run the compiled program:
./CORDIC
- Navigate to the
-
RISC-V Assembly Implementation:
- Navigate to the
CORDIC-ASM/
directory and assemble the code.
- Navigate to the
- Ensure you have the necessary compilers and tools installed for Python, C, and RISC-V assembly.
- For RISC-V, you might need an emulator (like "RARS" simulator) or hardware that supports RISC-V instructions.
This project is licensed under the MIT License. See the LICENSE file for details. ๐
For questions, feedback, or support, feel free to reach out:
- Author: Kacper Gรณrski ๐งโ๐ป
- LinkedIn: Kacper Gรณrski ๐
- Instagram: @kxcper.gorski ๐ธ
- X: @Kerciuu ๐ฆ
- GitHub: Kerciu ๐งโ๐ป
- Support: For technical support, please email kerciuuu@gmail.com ๐ง
For issues, please open a GitHub Issue. ๐