---
# System prepended metadata

title: Soc lab6

---

# Soc lab6
Github link :https://github.com/Ivan890129/Soc_Lab06
## Simulation
### 一、	Matrix multiplication result
![image](https://hackmd.io/_uploads/rJa6wsa_T.png)

原始矩陣乘法的結果為
![image](https://hackmd.io/_uploads/B1Hb_o6dT.png)

在範例code中去看了第一列的結果
而結果為3e 44 4a 50，與正確答案吻合。

而我們將Headfile 中的兩個矩陣做更改，並去檢查每個數值是否正確。
![image](https://hackmd.io/_uploads/r1mGOja_T.png)
![image](https://hackmd.io/_uploads/BJDzdi6u6.png) 

更改counter_la_mm.c的code，檢查所有的結果 
![image](https://hackmd.io/_uploads/Bkgm_i6_6.png)

更改Testbench
![image](https://hackmd.io/_uploads/H18mdiT_p.png)

計算結果正確。 
![image](https://hackmd.io/_uploads/BkQnujaOT.png)

### 二、 FIR result
結果應該為{0,-10,-29,-25,35,158,337,539,732,915,1098}
挑後面幾個答案檢查
![image](https://hackmd.io/_uploads/ryi6uo6dp.png)
 
計算結果正確。 
![image](https://hackmd.io/_uploads/B1QAuj6_a.png)

### 三、Quick sort
![image](https://hackmd.io/_uploads/HJWWYoTOT.png)
![image](https://hackmd.io/_uploads/SkY-topOa.png)

### 四、UART
![image](https://hackmd.io/_uploads/rJEfYjpOa.png)
![image](https://hackmd.io/_uploads/BJsMYoaOa.png)

## UART on FPGA
* Block diagram
![image](https://hackmd.io/_uploads/HJsLKoT_T.png)

* Timing report
![image](https://hackmd.io/_uploads/Sk_PtsTua.png)

### Utilization 
![image](https://hackmd.io/_uploads/HyV_KjpOp.png)
![image](https://hackmd.io/_uploads/HJYdYip_p.png)

原本我們也有遇到timeing-violation，
參考討論區給的方法得以解決

![image](https://hackmd.io/_uploads/S1lrKts6_a.png)
![image](https://hackmd.io/_uploads/H1bqKsp_T.png)
 
## Jupyter Notebook
![image](https://hackmd.io/_uploads/BkfpYipda.png)

