Skip to content

Instantly share code, notes, and snippets.

@bl0x
Created August 8, 2023 00:04
Show Gist options
  • Save bl0x/9d368679244dbb6463d2f5c6b7ace3ed to your computer and use it in GitHub Desktop.
Save bl0x/9d368679244dbb6463d2f5c6b7ace3ed to your computer and use it in GitHub Desktop.
extract relevant part information from gowin ide device_info.csv
awk -F, '{print " [\""$2"\", \""$4"\"],"}' \
~/opt/gowin/IDE/share/device/device_info.csv \
| sort | cat <(echo "parts = [") - <(echo "]") > parts.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment