Initial Commit

Include Coursework PDF and basic test script for checking answer in Python
This commit is contained in:
Aadi Desai 2022-01-25 16:48:03 +00:00
commit dc28e5c175
No known key found for this signature in database
GPG key ID: CFFFE425830EF4D9
4 changed files with 22 additions and 0 deletions

7
.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
**
!*.v
!*.qsys
!DSD_coursework_DE1-SoC.pdf
!README.md
!Python/
!*.py

BIN
DSD_coursework_DE1-SoC.pdf Normal file

Binary file not shown.

12
Python/test_script.py Normal file
View file

@ -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)

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# ELEC60011: Digital System Design - Coursework
- [Coursework Specification](./DSD_coursework_DE1-SoC.pdf)