- A simulator
- CocoTB
The basic encoding method.
-
Image Classification
-
Language Recognition
-
DNA Sequential Detection
-
Gesture Recognition
- 每个 sample,如一张图片、一句话,在累加后量化。
- 所有样本完成后,每个分类根据计数器的值二分量化。
For binary representation,
Parameter (Max):
- dim: 1024
- Sample size (# of vectors in a sample): 1024 (28*28=784)
- Set size (# of samples in a class set): 1024
- class (AM): 32
Sample encoding:
Class AM & footprint:
Similarity humming (DIM):
-
find the minimum of
$n$ numbers -
pop count
COCOTB is used for simulation which can give stimulus to testbench and access every signal inside the DUT using Python.
COCOTB is not a simulator. A simulator like iverilog, Verilator, VCS is needed.
For Iverilog, access [0] in array [0:0] raises an error. iverilog 编译 single element array 时报错,issue 此 PR 还未更新至 release,需要更新最新代码。
读取 dut 转换为 tensor 与 reference model 对比。 HW encoded data is compared with SW golden model.
When synthesize with Vivado, there is an issue about the define primitive used for sequential register.
smp_set.vcd: sample and set encoding. basic_train_predict.vcd: quantinization