commit dc28e5c175b0f31a770df9432d2cb95a4406322a Author: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Tue Jan 25 16:48:03 2022 +0000 Initial Commit Include Coursework PDF and basic test script for checking answer in Python diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b475684 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +** +!*.v +!*.qsys +!DSD_coursework_DE1-SoC.pdf +!README.md +!Python/ +!*.py \ No newline at end of file diff --git a/DSD_coursework_DE1-SoC.pdf b/DSD_coursework_DE1-SoC.pdf new file mode 100644 index 0000000..a188d3a Binary files /dev/null and b/DSD_coursework_DE1-SoC.pdf differ diff --git a/Python/test_script.py b/Python/test_script.py new file mode 100644 index 0000000..1ba5094 --- /dev/null +++ b/Python/test_script.py @@ -0,0 +1,12 @@ +from cmath import cos +from typing import Concatenate +import numpy as np + +start = 0 +stop = 255 +step = 5 +x = list(np.arange(start, stop, step)) + [stop] +acc = 0 +for i in x: + acc += 0.5 * i + i * i * cos((i - 128) / 128) +print(acc.real) diff --git a/README.md b/README.md new file mode 100644 index 0000000..63b0a65 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ELEC60011: Digital System Design - Coursework + +- [Coursework Specification](./DSD_coursework_DE1-SoC.pdf)