Repository navigation
Notebook demo: RGB PWM design, SVG export from Python, tinyrocket split - #25
Merged
Merged
Conversation
- Schematic.export_svg(path, callback): an export_svg push; the viewer answers with an svg_exported notification once its schematic shows something. A pending export is asked again after each root load, so it survives a view that wasn't rendered yet. - Rename colab_test.ipynb to getting_started.ipynb and turn it into a walkthrough around an RGB LED dimmer in SystemVerilog, with an SVG export section. - Move tinyrocket into its own notebook (najaeda holds one design, so Run all would show it in every view). - Bump to 0.1.8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Schematic.export_svg(path=None, callback=None): the notebook can now get the schematic as SVG (what File > Export Schematic as SVG... saves). Newexport_svgpush → the viewer answers with ansvg_exportednotification once its schematic shows something (AppState::svgExportRequested).ViewerSessionkeeps it insvgand calls one-shot callbacks. A pending export is asked again after eachroot_response, so an export requested before the view rendered isn't lost.colab_test.ipynb→getting_started.ipynb, rewritten as a walkthrough around an RGB LED dimmer in SystemVerilog (shared 8-bit counter + 3 PWM channels, ~250 gates). "Trace to Driver" on a channel flop's D pin draws the 8-bit comparator cone across the hierarchy. New SVG export section.tinyrocket.ipynb: tinyrocket moved to its own notebook. najaeda holds one design at a time, so with Run all every view showed tinyrocket.Test plan
pytest python/tests: 107 passed, including both notebooks run by nbclient and new export testsreuse lintpassescolabjob fails until 0.1.8 is on PyPI: the notebook uses the newexport_svgAPI. Expected; it passes after thev0.1.8tag.🤖 Generated with Claude Code