---
# System prepended metadata

title: lab combination -- parity generator
tags: [Templates, Book]

---

# Lab combination -- parity generator

## HLS

c simulation
---
![](https://hackmd.io/_uploads/B1HVKRT22.png)


c synthesis
---
- report
![](https://hackmd.io/_uploads/BkG45Cp2n.png)
- resource(predicted in vitis_hls)
![](https://hackmd.io/_uploads/Sy_Qq0T33.png)


co simulation
---
- co simulation pass
![](https://hackmd.io/_uploads/H1HA9Rp33.png)

- waveform
![](https://hackmd.io/_uploads/SkPPcCp3n.png)


block diagram
---
- block diagram
![](https://hackmd.io/_uploads/ryiIjAThh.png)

- synthesis success
![](https://hackmd.io/_uploads/BJFkhC6hn.png)

## Verilog

Verilog code
---
- in github folder

Verilog testbench
---
- in github folder

simulation
---
![](https://hackmd.io/_uploads/Sy2gCATh3.png)

## Compare
resource compare
---
- HLS
![](https://hackmd.io/_uploads/SJyVRATh3.png)

- Verilog
![](https://hackmd.io/_uploads/Sk4NAR623.png)

resouce utilization is same

key point
---
1. During testing, we will use the golden model calculated by software to compare with the results calculated by hardware.
2. In the Verilog testbench, it is necessary to add delays appropriately.
3. In Vitis HLS, in order to view the RTL waveform, co-simulation must be successfully completed.

###### tags: `parity generator` `lab combination`
