How fpgawars/icestudio works
Icestudio is a desktop visual-design environment for open-source FPGA boards. The main user flow is drawing a circuit in the board editor, managing blocks and collections, compiling the design, then using toolchain/plugins to upload it to a board. The repository also includes board setup, tutorials, serial access, and collection management. The README documents the draw-and-upload workflow; sampled files show editor, plugin dispatch, collection indexing, and local storage, but not enough of the compiler/toolchain call chain to assert those links.
Main entry points: design.js Circuit editor · compiler.js HDL compiler · collectionManager.js Collection manager · CollectionService.js Collection indexing
Components 21
Circuit design
- Circuit editor
app/scripts/controllers/design.js - Graph rendering
app/scripts/graphics/joint.shapes.js - Circuit graph
app/scripts/services/graph.js - HDL compiler
app/scripts/services/compiler.js
Blocks and collections
- Collection manager
app/resources/plugins/collectionManager2/js/collectionManager.js - Collection indexing
app/resources/plugins/collectionService/js/CollectionService.js - Index worker
app/resources/plugins/collectionService/collectionServiceWorker.js
Application runtime
- Local database service
app/resources/plugins/localDatabase/localDatabase.js - IndexedDB engine
app/resources/plugins/localDatabase/js/DbEngineIndexDB.js - Plugin manager
app/resources/libs/Icestudio/Services/WaflePluginManager.js - Window manager
app/resources/libs/Icestudio/GUI/WafleWindowManager.js
Board and plugins
- Build tools
app/scripts/services/tools.js - Board profiles
app/scripts/services/boards.js - Board hub
app/resources/plugins/iceHub/js/iceHub.js - Setup wizard
app/resources/plugins/setupWizard/js/wizard.js - Apio shell
app/resources/plugins/apioShell/js/apioShell.js - MCH toolchain
app/resources/plugins/MCH22BToolchain/mch22bMT.js - Serial terminal
app/resources/plugins/serial-term/js/main.js - Tutorial viewer
app/resources/plugins/iceTutorial/js/main.js
Other components
- Designer
- FPGA board
Connections 19
- Designer → Circuit editor: draws circuit
README.md - Circuit editor → Graph rendering: renders graph
- Circuit editor → Circuit graph: edits graph
- Designer → HDL compiler: requests compile
- HDL compiler → Build tools: prepares output
- Build tools → FPGA board: uploads design
README.md - Designer → Collection manager: manages blocks
- Index worker → Collection indexing: creates and runs
app/resources/plugins/collectionService/collectionServiceWorker.js - Collection indexing → Local database service: requests storage
app/resources/plugins/collectionService/js/CollectionService.js - Local database service → IndexedDB engine: reads and writes
app/resources/plugins/localDatabase/localDatabase.js - Collection manager → Index worker: requests indexing
- Plugin manager → Window manager: opens windows
- Designer → Board hub: opens board hub
- Board hub → Setup wizard: installs boards
- Designer → Apio shell: runs toolchain
- Designer → MCH toolchain: runs toolchain
- Designer → Serial terminal: connects serial
- Designer → Tutorial viewer: views tutorials
- Board profiles → Circuit editor: configures target