https://github.com/kerciu/cordic-risc-v
My implementation of CORDIC algorithm in RISC-V assembly ๐งฎ๐ข โ a project for the Computer Architecture Lab at Warsaw University of Technology (WUT) ๐. This project showcases the CORDIC algorithm's implementation and its application in RISC-V assembly language. ๐ป๐
https://github.com/kerciu/cordic-risc-v
algorithms assembly assembly-language c computer-architecture cordic-algorithm low-level-programming risc-v
Last synced: about 2 months ago
JSON representation
My implementation of CORDIC algorithm in RISC-V assembly ๐งฎ๐ข โ a project for the Computer Architecture Lab at Warsaw University of Technology (WUT) ๐. This project showcases the CORDIC algorithm's implementation and its application in RISC-V assembly language. ๐ป๐
- Host: GitHub
- URL: https://github.com/kerciu/cordic-risc-v
- Owner: Kerciu
- License: mit
- Created: 2024-03-25T12:01:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-02T16:11:17.000Z (9 months ago)
- Last Synced: 2025-03-05T10:13:29.941Z (about 2 months ago)
- Topics: algorithms, assembly, assembly-language, c, computer-architecture, cordic-algorithm, low-level-programming, risc-v
- Language: Python
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ข RISC-V CORDIC Algorithm
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. ๐๐ป๐ข
## ๐ Project Description
The CORDIC (COordinate Rotation DIgital Computer) algorithm is used for various computations including trigonometric functions. ๐งฎ
## ๐ ๏ธ Implementation Languages
- **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. ๐ ๏ธ## ๐ Project Structure
- `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.## ๐ Usage
1. **Python Implementation**:
- Navigate to the `python/` directory and run:
```bash
python cordic.py
```2. **C Implementation**:
- Navigate to the `c/` directory and compile the code:
```bash
gcc -o CORDIC CORDIC.c
```
- Run the compiled program:
```bash
./CORDIC
```3. **RISC-V Assembly Implementation**:
- Navigate to the `CORDIC-ASM/` directory and assemble the code.## ๐ Notes
- 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.## ๐ License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details. ๐
## ๐ฌ Contact
For questions, feedback, or support, feel free to reach out:
- **Author**: [Kacper Gรณrski](mailto:[email protected]) ๐งโ๐ป
- **LinkedIn**: [Kacper Gรณrski](https://www.linkedin.com/in/kacper-gorski-se/) ๐
- **Instagram**: [@kxcper.gorski](https://www.instagram.com/kxcper.gorski/) ๐ธ
- **X**: [@Kerciuu](https://x.com/Kerciuu) ๐ฆ
- **GitHub**: [Kerciu](https://github.com/Kerciu) ๐งโ๐ป
- **Support**: For technical support, please email [[email protected]](mailto:[email protected]) ๐งFor issues, please open a [GitHub Issue](https://github.com/Kerciu/riscv-cordic-algorithm/issues). ๐
---