Repository navigation
Releases: SweiryDev/MicroCNN-TangNano20k
Release list
Bias ROM Fix and MIT License
This release contains the pre-compiled bitstream (NPU.fs) for the MicroCNN Accelerator, ready to be flashed directly to the Sipeed Tang Nano 20K.
How to Flash using Gowin Programmer:
Connect your Tang Nano 20K to your PC via USB.
Open the Gowin Programmer tool.
Click the Scan Device icon to detect the FPGA (it should identify as GW2AR-18C).
Double-click the blank cell under the File Name column for your detected device.
In the Device configuration window:
Set Access Mode to SRAM Program (for temporary testing) or Embedded Flash Mode (for persistent storage).
In the File name field, browse and select the downloaded NPU.fs file.
Click Save.
Click the Program/Configure (Play button) icon in the top toolbar to flash the board.
Once the progress bar completes successfully, the accelerator is running and waiting for data. You can now use the uart_medmnist_loader.py script provided in the main repository to stream images and test the inference.
Version Changes:
- Added MIT License to the repository.
- Merged PR from @philtomson fixing an off-by-one scale issue in the bias ROMs.
- Updated .fs bitstream to reflect the mathematically accurate bias values.
Initial Release - MicroCNN Bitstream
This release contains the pre-compiled bitstream (NPU.fs) for the MicroCNN Accelerator, ready to be flashed directly to the Sipeed Tang Nano 20K.
How to Flash using Gowin Programmer:
- Connect your Tang Nano 20K to your PC via USB.
- Open the Gowin Programmer tool.
- Click the Scan Device icon to detect the FPGA (it should identify as GW2AR-18C).
- Double-click the blank cell under the File Name column for your detected device.
- In the Device configuration window:
- Set Access Mode to SRAM Program (for temporary testing) or Embedded Flash Mode (for persistent storage).
- In the File name field, browse and select the downloaded NPU.fs file.
- Click Save.
- Click the Program/Configure (Play button) icon in the top toolbar to flash the board.
Once the progress bar completes successfully, the accelerator is running and waiting for data. You can now use the uart_medmnist_loader.py script provided in the main repository to stream images and test the inference.