-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- Co-authored-by: napowderly <napowderly@gmail.com> Co-authored-by: Matthew Wildoer <mawildoer@gmail.com>
- Loading branch information
1 parent
aaeb747
commit f2ffd07
Showing
29 changed files
with
2,474 additions
and
449 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,50 @@ | ||
# atopile viewer | ||
|
||
To use the viewer, start by building your project using: | ||
To use the viewer, invoke the `ato view` cli command: | ||
|
||
``` sh | ||
ato build | ||
ato view | ||
``` | ||
|
||
This will create a `<project-config>.view.json` file that the viewer can consume. Invoke the viewer using: | ||
If you have multiple build configuration, specify the one you would like to view with: | ||
|
||
``` sh | ||
ato view | ||
ato view -b <your-build-config-name> | ||
``` | ||
|
||
The viewer will spool up a server on your local machine at [http://127.0.0.1:8080](http://127.0.0.1:8080). The viewer gets access to the `<project-config>.view.json` through http://127.0.0.1:8080/data. | ||
The viewer will spool up a server on your local machine at [http://127.0.0.1:8080](http://127.0.0.1:8080). | ||
|
||
## Viewer interfaces | ||
|
||
### Block diagram | ||
|
||
![Block Diagram](assets/images/block_diagram_example.png) | ||
|
||
The block diagram is meant to provide a view that resembles your code structure. In the block diagram view, you will see the same signals and interfaces that are present in your code as well as how they interact with each other. This view will help you navigate through your project and it's structure. | ||
|
||
### Schematic | ||
|
||
![Schematic](assets/images/schematic_example.png) | ||
|
||
## Viewer interface | ||
The schematic view follows a more standard view of your design. This view can be used for documentation or inspecting a more concrete view of your final circuit. The schematic view can be enabled by navigating with the block diagram to the block you want to inspect and pressing the schematic button. You can switch back to block diagram by pressing the same button. | ||
|
||
### Navigate within your design | ||
The schematic diagram will represent all the components that are at the level or below the current module. | ||
|
||
The left pane shows you the name of the instance you are currently viewing, the parent instance and provides two buttons: "return" gets you back to the parent module. "layout" recreates the default layout after you have moved blocks around. | ||
## Navigate within your design | ||
|
||
To navigate within a module or component, simply click on it. | ||
*return*: This button brings you back to the parent module | ||
*re-layout*: This button re-lays out the modules for you | ||
*schematic/block diagram*: Switch between the two viewing modes | ||
*reload*: Loads the latest changes for your code. This feature hasn't been enabled from the block diagram yet. | ||
|
||
### Inspect links | ||
|
||
Clicking on a link will show the source and target address that the link is connection. Those could either be two signals or two compatible instances of an interface. | ||
Clicking on a link in the block diagram will show the source and target address that the link is connection. Those could either be two signals or two compatible instances of an interface. | ||
|
||
## Features currently not supported (but planned) | ||
|
||
- Saving the position of blocks | ||
- Saving the position of blocks and components | ||
- Inspecting a links pin to pin connections | ||
- Expanding and contracting modules (instead of navigating in and out of modules) | ||
- A decent way to see components and their pins | ||
- Ability to inspect multiple build configurations | ||
- A decent way to see components and their pins |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.