Test module for PAICORE 2.0
Project description
PAITest
📦 版本
🛠️ 使用
生成配置帧及对应测试输入帧,以实现硬件通路的简单测试,后续将芯片实际测试输出帧与预期结果进行对比即可。由于配置帧/测试帧I型需要配合UART配置使用,因此目前仅采用配置/测试帧II型方案,且 chip_addr
与 core*_addr
均固定为 (0, 0)
。
from paitest import paitest
'''Path to store the config & test frames'''
save_path = Path.cwd() / "test"
'''N groups'''
groups = 1
'''PAITest instance'''
PAITestManager = paitest("EAST")
# Random test 'groups' cores with 'groups' different parameters
paitest.GetRandomCasesForNCores(groups, save_path)
# Random test 10 cores but don't use core (6, 6)
config_frames, testin_frames, testout_frames = \
PAITestManager.Get1CaseForNCores(10, save_dir=save_path, masked_core_coord=(6, 6))
# Save frames in .bin file
PAITestManager.SaveFrames("./test/config_1.bin", config_frames)
生成的 N
组配置帧II型、测试输入帧II型及参考测试输出帧II型在 save_path
下:
save_path
├ config.bin
├ testin.bin
└ testout.bin
🗓️ TODO
- 上板验证
- 参数检验
- 配置/测试帧III/IV型
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
paitest-0.0.10.tar.gz
(22.2 kB
view details)
Built Distribution
paitest-0.0.10-py3-none-any.whl
(23.2 kB
view details)
File details
Details for the file paitest-0.0.10.tar.gz
.
File metadata
- Download URL: paitest-0.0.10.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c23c7b4bbbd29f9d9c230710f030d47b2bf4731a4242c3e8a0e6a4c89e47049 |
|
MD5 | 1bf3b6168f3839b410e3f18187bb69af |
|
BLAKE2b-256 | f131121ba595ba53f3db8041950997cd32ff412133938ffa345cac46325e3a5e |
File details
Details for the file paitest-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: paitest-0.0.10-py3-none-any.whl
- Upload date:
- Size: 23.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.10-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4959ae46c4f0dea13269e246591f3323df8fca33813ff5ef2c17202e0a1fb96 |
|
MD5 | 0ff1afaeff6454869b2af5a2d1784e0d |
|
BLAKE2b-256 | 30a8dc7eec908001a5e06830bbe94fe33e74c21970b11a47425e3d753feed687 |